File tree 1 file changed +6
-1
lines changed 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 125
125
default => " --index-url=${index} " ,
126
126
}
127
127
128
+ $pypi_search_index = $index ? {
129
+ false => ' ' ,
130
+ default => " --index=${index} " ,
131
+ }
132
+
128
133
$proxy_flag = $proxy ? {
129
134
false => ' ' ,
130
135
default => " --proxy=${proxy} " ,
242
247
# Latest version.
243
248
exec { "pip_install_${name}" :
244
249
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" ,
246
251
user => $owner ,
247
252
group => $group ,
248
253
cwd => $cwd ,
You can’t perform that action at this time.
0 commit comments