|
215 | 215 | if $ensure != present and $ensure != latest { |
216 | 216 | exec { "pip_install_${name}": |
217 | 217 | command => "${wheel_check} ; { ${pip_install} ${install_args} \$wheel_support_flag ${pip_common_args}@${ensure}#egg=${egg_name} || ${pip_install} ${install_args} ${pip_common_args}@${ensure}#egg=${egg_name} ;}", |
218 | | - unless => "${pip_env} freeze | grep -i -e ${grep_regex}", |
| 218 | + unless => "${pip_env} freeze --all | grep -i -e ${grep_regex}", |
219 | 219 | user => $owner, |
220 | 220 | group => $group, |
221 | 221 | umask => $umask, |
|
227 | 227 | } else { |
228 | 228 | exec { "pip_install_${name}": |
229 | 229 | command => "${wheel_check} ; { ${pip_install} ${install_args} \$wheel_support_flag ${pip_common_args} || ${pip_install} ${install_args} ${pip_common_args} ;}", |
230 | | - unless => "${pip_env} freeze | grep -i -e ${grep_regex}", |
| 230 | + unless => "${pip_env} freeze --all | grep -i -e ${grep_regex}", |
231 | 231 | user => $owner, |
232 | 232 | group => $group, |
233 | 233 | umask => $umask, |
|
244 | 244 | # Explicit version. |
245 | 245 | exec { "pip_install_${name}": |
246 | 246 | command => "${wheel_check} ; { ${pip_install} ${install_args} \$wheel_support_flag ${pip_common_args}==${ensure} || ${pip_install} ${install_args} ${pip_common_args}==${ensure} ;}", |
247 | | - unless => "${pip_env} freeze | grep -i -e ${grep_regex} || ${pip_env} list | sed -e 's/[ ]\\+/==/' -e 's/[()]//g' | grep -i -e ${grep_regex}", |
| 247 | + unless => "${pip_env} freeze --all | grep -i -e ${grep_regex} || ${pip_env} list | sed -e 's/[ ]\\+/==/' -e 's/[()]//g' | grep -i -e ${grep_regex}", |
248 | 248 | user => $owner, |
249 | 249 | group => $group, |
250 | 250 | umask => $umask, |
|
259 | 259 | # Whatever version is available. |
260 | 260 | exec { "pip_install_${name}": |
261 | 261 | command => "${wheel_check} ; { ${pip_install} \$wheel_support_flag ${pip_common_args} || ${pip_install} ${pip_common_args} ;}", |
262 | | - unless => "${pip_env} freeze | grep -i -e ${grep_regex} || ${pip_env} list | sed -e 's/[ ]\\+/==/' -e 's/[()]//g' | grep -i -e ${grep_regex}", |
| 262 | + unless => "${pip_env} freeze --all | grep -i -e ${grep_regex} || ${pip_env} list | sed -e 's/[ ]\\+/==/' -e 's/[()]//g' | grep -i -e ${grep_regex}", |
263 | 263 | user => $owner, |
264 | 264 | group => $group, |
265 | 265 | umask => $umask, |
|
289 | 289 | # Anti-action, uninstall. |
290 | 290 | exec { "pip_uninstall_${name}": |
291 | 291 | command => "echo y | ${pip_env} uninstall ${uninstall_args} ${proxy_flag} ${name}", |
292 | | - onlyif => "${pip_env} freeze | grep -i -e ${grep_regex}", |
| 292 | + onlyif => "${pip_env} freeze --all | grep -i -e ${grep_regex}", |
293 | 293 | user => $owner, |
294 | 294 | group => $group, |
295 | 295 | umask => $umask, |
|
0 commit comments