From: Dominic Cleal <dcl...@redhat.com>

Signed-off-by: Juerg Walz <jw...@pobox.com>
---
Local-branch: tickets/master/4258-dev
 lib/puppet/provider/package/pkgutil.rb |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/puppet/provider/package/pkgutil.rb 
b/lib/puppet/provider/package/pkgutil.rb
index b8ad548..05d189d 100755
--- a/lib/puppet/provider/package/pkgutil.rb
+++ b/lib/puppet/provider/package/pkgutil.rb
@@ -67,15 +67,15 @@ Puppet::Type.type(:package).provide :pkgutil, :parent => 
:sun, :source => :sun d
 
     # Split the different lines into hashes.
     def self.blastsplit(line)
-        if line =~ /\s*(\S+)\s+((\[Not installed\])|(\S+))\s+(\S+)/
+        if line =~ /\s*(\S+)\s+(\S+)\s+(.*)/
             hash = {}
             hash[:name] = $1
-            hash[:ensure] = if $2 == "[Not installed]"
+            hash[:ensure] = if $2 == "notinst"
                 :absent
             else
                 $2
             end
-            hash[:avail] = $5
+            hash[:avail] = $3
 
             if hash[:avail] == "SAME"
                 hash[:avail] = hash[:ensure]
-- 
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 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.

Reply via email to