[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5

Juerg Walz jwalz at pobox.com
Tue May 10 08:06:09 UTC 2011


The following commit has been merged in the experimental branch:
commit e5827098b11fd8f9922a3e9f80c8c573d302a4d4
Author: Juerg Walz <jwalz at pobox.com>
Date:   Thu Mar 10 15:44:28 2011 +0800

    (#4258) pkgutil: bug fix: if shortname is not equal to package name

diff --git a/lib/puppet/provider/package/pkgutil.rb b/lib/puppet/provider/package/pkgutil.rb
index 4a87932..3a23796 100755
--- a/lib/puppet/provider/package/pkgutil.rb
+++ b/lib/puppet/provider/package/pkgutil.rb
@@ -80,8 +80,8 @@ Puppet::Type.type(:package).provide :pkgutil, :parent => :sun, :source => :sun d
       end
       hash[:avail] = $3
 
-      if justme !~ /^[A-Z]+/
-        hash[:name].sub! /^[A-Z]+/, ''
+      if justme
+        hash[:name] = justme
       end
 
       if hash[:avail] =~ /^SAME\s*$/

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list