Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 21575 Details for
Bug 13616
per package USE flags and KEYWORDS
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fixed package.keywords patch
package.keywords.patch (text/plain), 1.29 KB, created by
Marius Mauch (RETIRED)
on 2003-12-01 23:05:25 UTC
(
hide
)
Description:
fixed package.keywords patch
Filename:
MIME Type:
Creator:
Marius Mauch (RETIRED)
Created:
2003-12-01 23:05:25 UTC
Size:
1.29 KB
patch
obsolete
>--- pym/portage.py 2003-08-07 13:29:11.000000000 -0700 >+++ pym/portage.py 2003-08-07 13:16:01.000000000 -0700 >@@ -3773,6 +3841,18 @@ > if mylist==None: > return [] > newlist=[] >+ pkglist=grabfile("/etc/portage/package.keywords") >+ pkgdict = {} >+ for line in pkglist: >+ # default to ~arch if no specific keyword is given >+ if len(line.split()) == 1: >+ mykeywordlist = [] >+ for keyword in groups: >+ if not keyword[0] in "~-": >+ mykeywordlist.append("~"+keyword) >+ pkgdict[line] = mykeywordlist >+ else: >+ pkgdict[line.split()[0]] = line.split()[1:] > for mycpv in mylist: > #we need to update this next line when we have fully integrated the new db api > auxerr=0 >@@ -3785,15 +3854,20 @@ > #print "!!! No KEYWORDS for "+str(mycpv)+" -- Untested Status" > continue > mygroups=myaux[0].split() >+ pgroups=groups[:] > match=0 >+ for mykey in pkgdict: >+ if db["/"]["porttree"].dbapi.xmatch("bestmatch-list", mykey, None, None, [mycpv]) \ >+ and catpkgsplit(mykey)[:2] == catpkgsplit(mycpv)[:2]: >+ pgroups.extend(pkgdict[mykey]) > for gp in mygroups: > if gp=="*": > match=1 > break >- elif "-"+gp in groups: >+ elif "-"+gp in pgroups: > match=0 > break >- elif gp in groups: >+ elif gp in pgroups: > match=1 > break > if match:
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 13616
:
7155
|
7156
|
7264
|
7265
|
9218
|
9219
|
10588
|
10589
|
12254
|
12255
|
13752
|
13753
|
14390
|
14678
|
14679
|
14847
|
14873
|
15239
|
15240
|
15241
|
15291
|
15303
|
15304
|
15347
|
15348
|
15349
|
15614
|
15715
|
16609
|
16610
|
16611
|
16768
|
17925
|
17926
|
19128
|
20637
|
20652
|
21575
|
21577