Skip to content

Instantly share code, notes, and snippets.

@scottwb
Created January 29, 2014 16:41
Show Gist options
  • Save scottwb/8691913 to your computer and use it in GitHub Desktop.
Save scottwb/8691913 to your computer and use it in GitHub Desktop.

Revisions

  1. scottwb created this gist Jan 29, 2014.
    14 changes: 14 additions & 0 deletions pear.rb.diff
    Original 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