Issue #7986 has been updated by Paul Armstrong.
-H kills off headers. Here's two packages with different publishers (solaris is the Oracle one, otoh.org is mine and the preferred one): <pre> pkg://otoh.org/library/ruby-18/[email protected],5.11:20110615T023448Z installed ----- pkg://solaris/runtime/[email protected],5.11-0.151.0.1:20101105T060607Z installed ----- </pre> Here's the man page section for list: <pre> list [-Hafnsuv] [--no-refresh] [pkg_fmri_pattern ...] Display a list of packages in the current image, including state and other information. By default, package variants for a different architecture or zone type are excluded. The usual output is in four columns: NAME (PUBLISHER) VERSION STATE UFOXI SUNWcs 0.5.11-0.126 installed ----- web/firefox/plugin/flash (extra) 10.0.32.18-0.111 installed ----- The first column contains the name of the package. If the publisher from which it is installed (or available, if not installed) is not the preferred publisher, then the publisher name is listed in parentheses after the package name. The second column contains the release and branch versions of the package (see pkg(5)). The third column contains the state of the package as it exists on the system. Possible values are "installed" and "known". The last column contains a set of flags that show how the package relates to other packages: - a "u" in the "U" column shows that a newer version is available, although it may not be possible to install this newer version due to package dependencies or constraints; - an "f" in the "F" column shows that this version has been frozen (not implemented); - an "o" in the "O" column shows that it is obsolete, while an "r" shows that it has been renamed (a form of obsoletion); - an "x" in the "X" column shows that it is prevented from being installed because some other package has excluded it (not implemented); and - an "i" in the "I" column shows that it has been constrained by an incorporation (not implemented). With -H, omit the headers from the listing. With -a, list installed packages and the newest version of packages that are available for installation. Packages are considered to be available for installation if they are allowed by the installed incorporations and by the image's variants. If one or more patterns are specified, then the newest version matching the specified pattern and is also allowed by any installed incorporations and the image's variants will be listed. Without -a, list only installed packages. With -f and -a, list all versions of all packages for all variants regardless of incorporation constraints or installed state. With -n, display the newest versions of all known packages, regardless of installed state. With -s, display a one-line short-form giving the package name and description. This option may be used with -a, -n, -u or -v. With -u, list only packages with newer versions available. With -v, show full package FMRIs, including publisher and complete version, all in the first column (the VERSION column disappears). This option may be used with -a, -n, or -u. With --no-refresh, do not attempt to contact the repositories for the image's publishers to retrieve publisher metadata (e.g. catalogs). <pre> This packaging system doesn't allow for letters in the package version (so no 10beta22). ---------------------------------------- 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: 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.
