Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

Commit ab24dd7

Browse files
author
Alec Clowes
committed
[COOK-4244] Fix the pip version_check_cmd to use the virtualenv pip when applicable.
Otherwise when upgrading the pip in your virtualenv, it will incorrectly get the system pip version and may skip the upgrade.
1 parent 4920ddd commit ab24dd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/pip.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def current_installed_version
112112
# incase you upgrade pip with pip!
113113
if new_resource.package_name.eql?('pip')
114114
delimeter = /\s/
115-
version_check_cmd = "pip --version"
115+
version_check_cmd = "#{which_pip(@new_resource)} --version"
116116
end
117117
result = shell_out(version_check_cmd)
118118
(result.exitstatus == 0) ? result.stdout.split(delimeter)[1].strip : nil

0 commit comments

Comments
 (0)