Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Commit

Permalink
fixes COOK-1036, correctly grep for python-module version
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Grangaard authored and Andrew Grangaard committed Feb 9, 2012
1 parent b2abe83 commit f1313b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/providers/pip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def current_installed_version
@current_installed_version ||= begin
delimeter = /==/

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

0 comments on commit f1313b1

Please sign in to comment.