Re: [gentoo-portage-dev] [RFC] Guessing a package by short name

2007-03-15 Thread Zac Medico
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alec Warner wrote:
 My only concern is about consistency.  IE the portage backend (if I
 recall correctly) should return all matching nodes; emerge would then
 take that list and find the first one that matches in the vdb.  However
 it becomes a bit difficult sometimes because emerge may do this vdb
 preference but say, portageq, may not.

emerge is supposed to be a high-level front-end though.  If
necessary, there's no reason why we can't add a portageq function
that replicates emerge's smart category expansion.

Zac
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.3 (GNU/Linux)

iD8DBQFF+czj/ejvha5XGaMRAsh5AJ0YEO+NQ7BJ8CyjRFEhNUQXJuw5MACg0Cdp
2BtDRW7u8uOqspulqTw46Z0=
=zur1
-END PGP SIGNATURE-
-- 
gentoo-portage-dev@gentoo.org mailing list



[gentoo-portage-dev] [RFC] Guessing a package by short name

2007-03-14 Thread Daniel Barkalow
I think emerge should be able to do better with guessing what I mean by 
sudo. How about, if:

1) ask or pretend is on, and
2) exactly one package with a given short name is in world or is installed

it will print a message explaining the ambiguity, but will proceed with 
the package from world. (1 means that the user has a chance to confirm the 
choice before anything actually happens; 2 means portage has some guess as 
to which is desired.)

-Daniel
*This .sig left intentionally blank*
-- 
gentoo-portage-dev@gentoo.org mailing list