Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6985ee1

Browse files
committed
python v1.0.1, made pip version check pattern more strict in load_current_resource.
1 parent 5bbd2cc commit 6985ee1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@
4141
"recipes": {
4242
"python": "Installs python, pip, and virtualenv"
4343
},
44-
"version": "1.0.0"
44+
"version": "1.0.1"
4545
}

metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
maintainer_email "[email protected]"
33
license "Apache 2.0"
44
description "Installs python packages. Includes LWRPs for managing `pip` packages and `virtualenv` isolated Python environments."
5-
version "1.0.0"
5+
version "1.0.1"
66

77
recipe "python", "Installs python, pip, and virtualenv"
88

providers/pip.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def current_installed_version
100100
@current_installed_version ||= begin
101101
delimeter = /==/
102102

103-
version_check_cmd = "pip freeze#{expand_virtualenv(can_haz_virtualenv(@new_resource))} | grep -i #{@new_resource.package_name}"
103+
version_check_cmd = "pip freeze#{expand_virtualenv(can_haz_virtualenv(@new_resource))} | grep -i #{@new_resource.package_name}=="
104104
# incase you upgrade pip with pip!
105105
if @new_resource.package_name.eql?('pip')
106106
delimeter = /\s/

0 commit comments

Comments
 (0)