kscherer/puppet — comment on commit 91aea02492256c717fa598cd691c9118fccfc042
File:  line 0
By mikeknox:

I tried this on OpenSuSE 10.2, and needed to drop "-l" for that version of zypper (0.6.13)

diff --git a/lib/puppet/provider/package/zypper.rb b/lib/puppet/provider/package/zypper.rb
index acb2774..049ce36 100644
--- a/lib/puppet/provider/package/zypper.rb
+++ b/lib/puppet/provider/package/zypper.rb
@@ -25,14 +25,16 @@ Puppet::Type.type(:package).provide :zypper, :parent => :rpm do

#zypper version < 1.0 does not support --quiet flag
quiet = "--quiet"
+ license = "-l -y"
begin
zypper "--version"
rescue Puppet::ExecutionFailure
#This command returns 1 with zypper < 1.0
quiet = "--terse"
+ license = "-y"
end

- output = zypper "#{quiet}", :install, "-l", "-y", wanted
+ output = zypper "#{quiet}", :install, "#{license}", wanted

unless self.query
raise Puppet::ExecutionFailure.new(