Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 14390 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]
portage.py-2.0.48-r1-per_package_use_flags.patch
portage.py-2.0.48-r1-per_package_use_flags.patch (text/plain), 1.98 KB, created by
Max Kalika (RETIRED)
on 2003-07-11 14:43:15 UTC
(
hide
)
Description:
portage.py-2.0.48-r1-per_package_use_flags.patch
Filename:
MIME Type:
Creator:
Max Kalika (RETIRED)
Created:
2003-07-11 14:43:15 UTC
Size:
1.98 KB
patch
obsolete
>--- /tmp/portage.py.orig 2003-06-23 23:20:06.000000000 -0700 >+++ portage.py 2003-07-11 13:50:39.000000000 -0700 >@@ -887,7 +887,7 @@ > self.regenerate() > > def regenerate(self,useonly=0): >- global incrementals,usesplit,profiledir >+ global incrementals,usesplit,pkgusesplit,profiledir > if useonly: > myincrementals=["USE"] > else: >@@ -942,6 +942,24 @@ > usesplit.insert(0,self.configdict["defaults"]["ARCH"]) > self.configlist[-1]["USE"]=string.join(usesplit," ") > >+ pkgusesplit={} >+ self.configlist[-1]["PKGUSE"]="" >+ mylines=grabdict("/etc/portage/package.use") >+ for x in mylines: >+ mypkgusesplit=[] >+ for y in mylines[x]: >+ if x=="-*" or x=="*": >+ continue >+ if y[0]=="-": >+ z=y[1:] >+ else: >+ z="-"+y >+ if y not in usesplit and y not in mypkgusesplit and z not in mypkgusesplit: >+ mypkgusesplit.append(y) >+ if mypkgusesplit: >+ pkgusesplit[x]=mypkgusesplit >+ self.configlist[-1]["PKGUSE"] = self.configlist[-1]["PKGUSE"]+"( "+x+" => "+string.join(mypkgusesplit," ")+" )" >+ > def __getitem__(self,mykey): > if mykey=="CONFIG_PROTECT_MASK": > suffix=" /etc/env.d" >@@ -2507,15 +2525,27 @@ > mydep=mydep[1:] > return prefix+cpv_expand(mydep,mydb)+postfix > >-def dep_check(depstring,mydbapi,use="yes",mode=None): >+def dep_check(depstring,mydbapi,use="yes",mode=None,parent=None): > """Takes a depend string and parses the condition.""" >- global usesplit >+ global usesplit,pkgusesplit > if use=="all": > #enable everything (for repoman) > myusesplit=["*"] > elif use=="yes": > #default behavior >- myusesplit=usesplit >+ myusesplit=usesplit[:] >+ if parent and (pkgusesplit!={}): >+ myparent=pkgsplit(parent.split()[2])[0] >+ if pkgusesplit.has_key(myparent): >+ for x in pkgusesplit[myparent]: >+ if x[0]=="-": >+ y=x[1:] >+ else: >+ y="-"+x >+ if y in myusesplit: >+ myusesplit.remove(y) >+ if x not in myusesplit: >+ myusesplit.append(x) > else: > #we are being run by autouse(), don't consult USE vars yet. > myusesplit=[]
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