Issue #11004 has been updated by Ben Hughes.

So running that I get:

<pre>
[root@mundilfari:puppet]# git lg -n 1                                           
                                                        
puppet:mw46d/ticket/11004/Solaris:297f4c6
* 297f4c6 Marco Walther 19 hours ago New idea to find the pkg version  (HEAD, 
mw46d/master, mw46d/ticket/11004/Solaris)
[root@mundilfari:puppet]# puppet agent -t                                       
                                                        
puppet:mw46d/ticket/11004/Solaris:297f4c6
info: Retrieving plugin
info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
info: Caching catalog for mundilfari.example.org
info: Applying configuration version '4b5b4e7'
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"archiver/gnu-tar                                  1.26-0.175.0.0.0.2.537     
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"compress/bzip2                                    1.0.6-0.175.0.0.0.2.537    
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"compress/gzip                                     1.3.5-0.175.0.0.0.2.537    
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"compress/p7zip                                    9.20.1-0.175.0.0.0.2.537   
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"compress/unzip                                    6.0-0.175.0.0.0.2.537      
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"compress/zip                                      3.0-0.175.0.0.0.2.537      
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"consolidation/SunVTS/SunVTS-incorporation         0.5.11-0.172.0.0.0.0.0     
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"consolidation/X/X-incorporation                   0.5.11-0.175.0.0.0.0.1215  
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"consolidation/admin/admin-incorporation           0.5.11-0.175.0.0.0.2.0     
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"consolidation/cacao/cacao-incorporation           0.5.11-0.174.0.0.0.0.0     
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"consolidation/cde/cde-incorporation               0.5.11-0.175.0.0.0.0.0     
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"consolidation/cns/cns-incorporation               0.5.11-0.175.0.0.0.1.0     
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"consolidation/dbtg/dbtg-incorporation             0.5.11-0.175.0.0.0.2.0     
i--"
[...snip...]
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"x11/library/toolkit/libxt                         1.0.9-0.175.0.0.0.0.1215   
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"shell/bash                                        4.1.9-0.175.0.0.0.2.537    
i--"
err: /Stage[main]/Packages::Shells/Package[shell/bash]/ensure: change from 
absent to present failed: Execution of '/usr/bin/pkg install shell/bash' 
returned 4: Recursing into linked image: zone:smelly

Returning from linked image: zone:smelly

No updates necessary for this image.

warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"shell/zsh                                         4.3.12-0.175.0.0.0.2.537   
i--"
</pre>

etc...
----------------------------------------
Feature #11004: Solaris 11 GA & pkg
https://projects.puppetlabs.com/issues/11004#change-61592

Author: Robert van Veelen
Status: In Topic Branch Pending Review
Priority: Normal
Assignee: 
Category: package
Target version: 
Affected Puppet version: 
Keywords: 
Branch: https://github.com/puppetlabs/puppet/pull/719


Oracle has changed the output format of pkg again for the final release of s11. 
The "status" field is no longer present in the output of "pkg list -H". There 
is now an IFO field that has the following status flags (from the man page):

         The last column contains a set of flags  that  show  the
         status of the package:

             o    An i in the I column shows that the package  is
                  installed.

             o    An f in the F column shows that the package  is
                  frozen.

             o    An o in the O column shows that the package  is
                  obsolete.  An  r in the O column shows that the
                  package has been renamed  (a  form  of  obsole-
                  tion).

Using the work done for Bug #7986 , I have tried the following with some 
success (though this only uses the 'I' column):



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