Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 103508 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]
expand new-style virtuals with `portageq match`
match_expand_virtuals.patch (text/plain), 1.28 KB, created by
Zac Medico
on 2006-12-06 18:55:50 UTC
(
hide
)
Description:
expand new-style virtuals with `portageq match`
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2006-12-06 18:55:50 UTC
Size:
1.28 KB
patch
obsolete
>Index: bin/portageq >=================================================================== >--- bin/portageq (revision 5196) >+++ bin/portageq (working copy) >@@ -178,8 +178,35 @@ > if (len(argv) < 2): > print "ERROR: insufficient parameters!" > sys.exit(2) >+ myroot = argv[0] >+ myatom = argv[1] >+ trees = portage.db >+ vardb = trees[myroot]["vartree"].dbapi >+ mysettings = vardb.settings > try: >- print string.join(portage.db[argv[0]]["vartree"].dbapi.match(argv[1]),"\n") >+ myatom = portage.key_expand( >+ myatom, mydb=vardb, settings=mysettings) >+ myslots = [] >+ vdb_matches = vardb.match(myatom) >+ for cpv in vdb_matches: >+ myslots.append(vardb.aux_get(cpv, ["SLOT"])[0]) >+ if len(myslots) < 2: >+ greedy_atoms = [myatom] >+ else: >+ greedy_atoms = [] >+ mykey = portage.dep_getkey(myatom) >+ for myslot in myslots: >+ greedy_atoms.append("%s:%s" % (mykey, myslot)) >+ for myatom in greedy_atoms: >+ mycheck = portage.dep_check( >+ myatom, None, mysettings, myroot=myroot, trees=trees) >+ if not mycheck[0]: >+ sys.stderr.write("\n\n%s\n\n" % mycheck[1]) >+ sys.stderr.write("%s\n\n" % depstring) >+ sys.exit(1) >+ for myatom in mycheck[1]: >+ for cpv in vardb.match(myatom): >+ print cpv > except ValueError, e: > # Multiple matches thrown from cpv_expand > pkgs = e.args[0]
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