Issue #4258 has been updated by Rudy Gevaert.

File pkgutil.rb.patch added

Hi James,

I gave the testing a try.  Luckily I could just download the provider 
pkgutil.rb file.

The patch on http://github.com/automatthias/puppet/commits/master/ doesn't work 
on my system.

The output of pkgutil on my system is different than the output that is 
expected by the provider.

I adjusted the provider the be able to parse the output pkgutil is giving me:
<code>
info: Applying configuration version '1288631027'
debug: Puppet::Type::Package::ProviderPkgutil: Executing '/opt/csw/bin/pkgutil 
-c --single subversion'
warning: CSWsvn                    1.4.5,REV=2007.11.18      SAME               
      
warning: 1:CSWsvn
warning: 2:1.4.5,REV=2007.11.18
warning: 3:SAME                     
debug: Puppet::Type::Package::ProviderPkgutil: Executing '/opt/csw/bin/pkgutil 
-c --single emacs'
warning: CSWemacs                  notinst                   22.1               
      
warning: 1:CSWemacs
warning: 2:notinst
warning: 3:22.1                     
debug: Puppet::Type::Package::ProviderPkgutil: Executing '/opt/csw/bin/pkgutil 
-y -i emacs'
notice: /Stage[main]//Node[zonnebloem]/Package[emacs]/ensure: created
debug: Finishing transaction 75266800
</code>

To be clear, the warnings are just output added by me. The first line is the 
output produced by calling the pkgutil command.  Line 1,2,3 are the matched 
regular expressions.

You can see that my patched provider installed emacs without a problem.  
Attached you can find the changed I made.

I'm running
<pre>bash-3.00# pkgutil --version
2.1
</pre>


----------------------------------------
Feature #4258: Add pkgutil provider
https://projects.puppetlabs.com/issues/4258

Author: James Turnbull
Status: Ready for Testing
Priority: Normal
Assignee: 
Category: Solaris
Target version: 2.6.x
Affected Puppet version: 0.25.5
Keywords: 
Branch: http://github.com/jamtur01/puppet/tree/tickets/master/4258





-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en.

Reply via email to