Issue #7986 has been updated by Stefan Schulte.

from the pkg manpage
<pre>
Package FMRIs and Versions
     [...]
         pkg://opensolaris.org/library/[email protected],5.11-0.75:20071001T163427Z
     [...]
     The version follows the package name, separated by an '@'.  It
     consists of four sequences of numbers, separated by punctuation.  The
     elements in the first three sequences are separated by dots, and the
     sequences are arbitrarily long.

     The first part is the component version.  For components tightly bound
     to OpenSolaris, this will usually be the value of 'uname -r' for that
     version of OpenSolaris.  For a component with its own development
     lifecycle, this sequence will be the dotted release number, such as
     '2.4.10'.

     The second part, following the comma, is the build version, specifying
     what version of OpenSolaris the contents of the package were built on,
     providing a minimum bound on which OpenSolaris version the contents can be
     expected to run successfully.

     The third part, following the dash, is the branch version, a
     versioning component, providing vendor-specific information.  This may
     be incremented when the packaging metadata is changed, independently
     of the component, may contain a build number, or some other
     information.
     [...]
</pre>
Am I right that when you talk about a specific package versions you always talk 
about the component version and you (and puppet) should generally not care 
about the build version or branch version?
----------------------------------------
Bug #7986: Solaris 11/OpenSolaris pkg provider needs to accept exit code 4
https://projects.puppetlabs.com/issues/7986

Author: Paul Armstrong
Status: Accepted
Priority: Normal
Assignee: Stefan Schulte
Category: package
Target version: 
Affected Puppet version: 2.6.8
Keywords: solaris opensolaris pkg
Branch: 


When a package doesn't require updates, pkg returns with an exit code of 4 
instead of 0.

<pre>
$ pkg install bash
No updates necessary for this image.
$ echo $?
4
</pre>

The pkg provider needs to check for exit code 4 and treat that as success for 
checks.


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