Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked frompoise/python

Commitab24dd7

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 parent4920ddd commitab24dd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎providers/pip.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def current_installed_version
112112
# incase you upgrade pip with pip!
113113
ifnew_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)

[8]ページ先頭

©2009-2025 Movatter.jp