(and contents -r, and possibly some other subcommands)

Right now,

    pkg info -r pattern1

will gather all the matching fmris from the preferred authority and all the
matches from all other authorities.  It will error out if it matches more
than one package from the preferred authority, or if there are no matches
from the preferred authority and it matches more than one from a
non-preferred authority.  If it finds precisely one package, it takes the
latest version, and shows the information on that.

Is that the right behavior?  In particular, should it error out if the
pattern matches more than one package?  It seems odd that

    pkg info -r SUNWcs\?

should complain, rather than spitting out information on SUNWcsl and
SUNWcsd.

I can see the point that it should choose the latest version for each
package (modulo constraints), since it seems like printing out information
for the latest version you can upgrade to would be the right default for
info -r.  Perhaps spit out absolutely everything with a new -a flag?

Thoughts?

Danek
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to