This is an update (i.e. version 2) of my proposed changes for ticket #4258. Here's the diff:
--- a/lib/puppet/provider/package/pkgutil.rb +++ b/lib/puppet/provider/package/pkgutil.rb @@ -56,7 +56,7 @@ Puppet::Type.type(:package).provide :pkgutil, :parent => :sun, :source => :sun d if hash[:justme] # Ensure we picked up the package line, not any pkgutil noise. - list.reject! { |h| h[:name] !~ /#{hash[:justme]}$/ } + list.reject! { |h| h[:name] != hash[:justme] } return list[-1] else list.reject! { |h| h[:ensure] == :absent } @@ -80,6 +80,10 @@ Puppet::Type.type(:package).provide :pkgutil, :parent => :sun, :source => :sun d end hash[:avail] = $3 + if justme !~ /^[A-Z]+/ + hash[:name].sub! /^[A-Z]+/, '' + end + if hash[:avail] =~ /^SAME\s*$/ hash[:avail] = hash[:ensure] end -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-dev@googlegroups.com. To unsubscribe from this group, send email to puppet-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.