Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 10588 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]
updated and fixed portage.py patch
portage.py_per_package_use.3.patch (text/plain), 2.88 KB, created by
Max Kalika (RETIRED)
on 2003-04-13 13:37:42 UTC
(
hide
)
Description:
updated and fixed portage.py patch
Filename:
MIME Type:
Creator:
Max Kalika (RETIRED)
Created:
2003-04-13 13:37:42 UTC
Size:
2.88 KB
patch
obsolete
>--- /tmp/portage.py 2003-04-03 13:29:03.000000000 -0800 >+++ portage.py 2003-04-13 10:18:18.000000000 -0700 >@@ -50,2 +50,2 @@ >-incrementals=["USE","FEATURES","ACCEPT_KEYWORDS","ACCEPT_LICENSE","CONFIG_PROTECT_MASK","CONFIG_PROTECT","PRELINK_PATH","PRELINK_PATH_MASK"] >-stickies=["KEYWORDS_ACCEPT","USE","CFLAGS","CXXFLAGS","MAKEOPTS","EXTRA_ECONF","EXTRA_EMAKE"] >+incrementals=["USE","PKGUSE","FEATURES","ACCEPT_KEYWORDS","ACCEPT_LICENSE","CONFIG_PROTECT_MASK","CONFIG_PROTECT","PRELINK_PATH","PRELINK_PATH_MASK"] >+stickies=["KEYWORDS_ACCEPT","USE","PKGUSE","CFLAGS","CXXFLAGS","MAKEOPTS","EXTRA_ECONF","EXTRA_EMAKE"] >@@ -842 +842 @@ >- global incrementals,usesplit,profiledir >+ global incrementals,usesplit,pkgusesplit,profiledir >@@ -858,0 +859,2 @@ >+ if mykey=="USE": >+ mysplit=self.parseuse(mysplit) >@@ -882,0 +885 @@ >+ >@@ -895,0 +899,16 @@ >+ >+ mypkgusesplit=pkgusesplit >+ pkgusesplit={} >+ for x in mypkgusesplit: >+ mypos=0 >+ while mypos<len(mypkgusesplit[x]): >+ if mypkgusesplit[x][mypos] in usesplit: >+ del mypkgusesplit[x][mypos] >+ else: >+ mypos=mypos+1 >+ if mypkgusesplit[x]!=[]: >+ pkgusesplit[x]=mypkgusesplit[x] >+ >+ self.configlist[-1]["PKGUSE"]="" >+ for x in pkgusesplit: >+ self.configlist[-1]["PKGUSE"]=self.configlist[-1]["PKGUSE"]+"( "+x+" => "+string.join(pkgusesplit[x]," ")+" )" >@@ -896,0 +916,36 @@ >+ def parseuse(self,myusesplit,mypos=0): >+ global pkgusesplit >+ try: >+ if pkgusesplit: pass >+ except: >+ pkgusesplit={} >+ while mypos<len(myusesplit): >+ if myusesplit[mypos]=="(": >+ firstpos=mypos >+ mypos=mypos+1 >+ while mypos<len(myusesplit): >+ if myusesplit[mypos]==")": >+ if mypos==firstpos+3: >+ myitems=[myusesplit[mypos-1]] >+ elif mypos>firstpos+3: >+ myitems=myusesplit[firstpos+2:mypos] >+ pkg=myusesplit[firstpos+1] >+ pkgusesplit[pkg]=[] >+ for x in myitems: >+ if x=="-*" or x=="*": >+ myusesplit[firstpos:mypos+1]=[] >+ mypos=firstpos-1 >+ break >+ if x[0]=="-": >+ y=x[1:] >+ else: >+ y="-"+x >+ if x not in pkgusesplit[pkg] and y not in pkgusesplit[pkg]: >+ pkgusesplit[pkg].append(x) >+ myusesplit[firstpos:mypos+1]=[] >+ mypos=firstpos-1 >+ break >+ mypos=mypos+1 >+ mypos=mypos+1 >+ return myusesplit >+ >@@ -2290 +2345 @@ >-def dep_check(depstring,mydbapi,use="yes",mode=None): >+def dep_check(depstring,mydbapi,use="yes",mode=None,parent=None): >@@ -2292 +2347 @@ >- global usesplit >+ global usesplit,pkgusesplit >@@ -2298 +2353,16 @@ >- myusesplit=usesplit >+ myusesplit=[] >+ for x in usesplit: >+ myusesplit.append(x) >+ >+ 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)
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