2008/7/3 Danek Duvall <[EMAIL PROTECTED]>:
> (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 think that using such a pattern implies that you expected more than
one possible match, so we should display all of the matches.

> 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

For -r, using the latest version makes sense since you either don't
have the item installed or want to see what the latest version would
give you.

> info -r.  Perhaps spit out absolutely everything with a new -a flag?

That sounds sane to me.

Cheers,
-- 
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to