Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 274367 Details for
Bug 157357
[PATCH] Add an option to portageq to provide packages that satisfy a virtual
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
use expand_new_virt function from bug 364673
expand_virtual.patch (text/plain), 1.29 KB, created by
Zac Medico
on 2011-05-23 08:07:26 UTC
(
hide
)
Description:
use expand_new_virt function from bug 364673
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2011-05-23 08:07:26 UTC
Size:
1.29 KB
patch
obsolete
>diff --git a/bin/portageq b/bin/portageq >index 069ece2..73fe79d 100755 >--- a/bin/portageq >+++ b/bin/portageq >@@ -43,6 +43,7 @@ except ImportError: > del pym_path > > from portage import os >+from portage.dbapi._expand_new_virt import expand_new_virt > from portage.util import writemsg, writemsg_stdout > > def eval_atom_use(atom): >@@ -492,6 +493,31 @@ def match(argv): > print(cpv) > match.uses_root = True > >+def expand_virtual(argv): >+ """<root> <atom> >+ Returns a \\n separated list of atoms expanded from a >+ given virtual atom, excluding blocker atoms. Satisfied >+ virtual atoms are not included in the output, since >+ they are expanded to real atoms which are displayed. >+ Unsatisfied virtual atoms are displayed without >+ any expansion. The "match" command can be used to >+ resolve the returned atoms to specific installed >+ packages. >+ """ >+ if len(argv) != 2: >+ print("ERROR: expected 2 parameters, got %d!" % len(argv)) >+ sys.exit(2) >+ root, atom = argv >+ if atom_validate_strict and not portage.isvalidatom(atom): >+ portage.writemsg("ERROR: Invalid atom: '%s'\n" % atom, >+ noiselevel=-1) >+ return 2 >+ results = list(expand_new_virt(portage.db[root]["vartree"].dbapi, atom)) >+ results.sort() >+ for x in results: >+ if not x.blocker: >+ print(x) >+expand_virtual.uses_root = True > > def vdb_path(argv): > """
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 157357
:
103508
|
112401
|
112894
|
112907
|
115387
| 274367