Created
January 29, 2014 16:41
-
-
Save scottwb/8691913 to your computer and use it in GitHub Desktop.
Revisions
-
scottwb created this gist
Jan 29, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ diff --git a/cookbooks/php/providers/pear.rb b/cookbooks/php/providers/pear.rb index db90e17..0172fca 100644 --- a/cookbooks/php/providers/pear.rb +++ b/cookbooks/php/providers/pear.rb @@ -155,7 +155,8 @@ def upgrade_package(name, version) command = "echo \"\r\" | #{@bin} -d" command << " preferred_state=#{can_haz(@new_resource, "preferred_state")}" command << " upgrade -a#{expand_options(@new_resource.options)}" - command << " #{prefix_channel(can_haz(@new_resource, "channel"))}#{name}-#{version}" + command << " #{prefix_channel(can_haz(@new_resource, "channel"))}#{name}" + command << "-#{version}" if version pear_shell_out(command) manage_pecl_ini(name, :create, can_haz(@new_resource, 'directives'), can_haz(@new_resource, 'zend_extensions')) if pecl? end