Signed-off-by: Juerg Walz <[email protected]>
---
Local-branch: tickets/master/4258-dev
lib/puppet/provider/package/pkgutil.rb | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/lib/puppet/provider/package/pkgutil.rb
b/lib/puppet/provider/package/pkgutil.rb
index 30f23e0..08d74df 100755
--- a/lib/puppet/provider/package/pkgutil.rb
+++ b/lib/puppet/provider/package/pkgutil.rb
@@ -6,6 +6,13 @@ Puppet::Type.type(:package).provide :pkgutil, :parent => :sun,
:source => :sun d
pkguti = "/opt/csw/bin/pkgutil"
end
+ pkgutilconf = File.open("/etc/opt/csw/pkgutil.conf")
+ correct_wgetopts = false
+ pkgutilconf.each {|line| correct_wgetopts = true if line =~
/^\s*wgetopts\s*=.*-nv/ }
+ if ! correct_wgetopts
+ Puppet.notice "It is highly recommended that you set 'wgetopts=-nv' in
your pkgutil.conf."
+ end
+
confine :operatingsystem => :solaris
commands :pkguti => pkguti
--
1.7.3.2
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.