Small bug fix for Dominic Cleals latest changes (to populate pkg instances for 
aliases): the hash "cloning" didn't work for me as expected:
notice: /Stage[main]/Base_system::Common_pkgs/Package[screen]/ensure: is 
ensure4.0.3,REV=2010.06.08providerpkgutilnameCSWscrn, should be 
4.0.3,REV=2010.06.08 (noop)

--- a/lib/puppet/provider/package/pkgutil.rb
+++ b/lib/puppet/provider/package/pkgutil.rb
@@ -38,7 +38,7 @@ Puppet::Type.type(:package).provide :pkgutil, :parent => 
:sun, :source => :sun d
       # Create a second instance with the alias if it's different
       pkgalias = aliases[pkg[:name]]
       if pkgalias and pkg[:name] != pkgalias
-        apkg = Hash.new(pkg)
+        apkg = pkg
         apkg[:name] = pkgalias
         pkginsts << new(apkg)
       end

-- 
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.

Reply via email to