File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 125125 default => " --index-url=${index} " ,
126126 }
127127
128+ $pypi_search_index = $index ? {
129+ false => ' ' ,
130+ default => " --index=${index} " ,
131+ }
132+
128133 $proxy_flag = $proxy ? {
129134 false => ' ' ,
130135 default => " --proxy=${proxy} " ,
242247 # Latest version.
243248 exec { "pip_install_${name}" :
244249 command => " ${pip_env} wheel --help > /dev/null 2>&1 && { ${pip_env} wheel --version > /dev/null 2>&1 || wheel_support_flag='--no-use-wheel'; } ; { ${pip_env} --log ${log} /pip.log install --upgrade \$ wheel_support_flag ${pypi_index} ${proxy_flag} ${install_args} ${install_editable} ${source} || ${pip_env} --log ${log} /pip.log install --upgrade ${pypi_index} ${proxy_flag} ${install_args} ${install_editable} ${source} ;}" ,
245- unless => " ${pip_env} search ${proxy_flag} ${source} | grep -i INSTALLED.*latest" ,
250+ unless => " ${pip_env} search ${pypi_search_index} ${ proxy_flag} ${source} | grep -i INSTALLED.*latest" ,
246251 user => $owner ,
247252 group => $group ,
248253 cwd => $cwd ,
You can’t perform that action at this time.
0 commit comments