[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5
Maciej Blizinski
maciej at opencsw.org
Tue May 10 07:58:43 UTC 2011
The following commit has been merged in the experimental branch:
commit e02ba01613a5ce61ccd6c80c17d53134daf589ba
Author: Maciej Blizinski <maciej at opencsw.org>
Date: Thu Jul 22 12:50:29 2010 +0200
Using --single in the pkgutil provider.
diff --git a/lib/puppet/provider/package/pkgutil.rb b/lib/puppet/provider/package/pkgutil.rb
index cde7482..c2489cc 100755
--- a/lib/puppet/provider/package/pkgutil.rb
+++ b/lib/puppet/provider/package/pkgutil.rb
@@ -1,4 +1,5 @@
# Packaging using pkgutil from http://pkgutil.wikidot.com/
+# vim:set sw=4 ts=4 sts=4:
Puppet::Type.type(:package).provide :pkgutil, :parent => :sun, :source => :sun do
desc "Package management using ``pkgutil`` command on Solaris."
pkgutil = "pkgutil"
@@ -20,6 +21,7 @@ Puppet::Type.type(:package).provide :pkgutil, :parent => :sun, :source => :sun d
end
end
+ # It's a class method. Returns a list of instances of this class.
def self.instances(hash = {})
blastlist(hash).collect do |bhash|
bhash.delete(:avail)
@@ -32,6 +34,7 @@ Puppet::Type.type(:package).provide :pkgutil, :parent => :sun, :source => :sun d
command = ["-c"]
if hash[:justme]
+ command << ["--single"]
command << hash[:justme]
end
@@ -86,7 +89,7 @@ Puppet::Type.type(:package).provide :pkgutil, :parent => :sun, :source => :sun d
pkgutil "-y", "--install", @resource[:name]
end
- # Retrieve the version from the current package file.
+ # What's the latest version of the package available?
def latest
hash = self.class.blastlist(:justme => @resource[:name])
hash[:avail]
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list