Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 22978 Details for
Bug 36970
Local keywords capability
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to enable local keyword overrides in Portage
shane-local-keywords.patch (text/plain), 956 bytes, created by
Shane Hathaway
on 2004-01-01 14:26:48 UTC
(
hide
)
Description:
Patch to enable local keyword overrides in Portage
Filename:
MIME Type:
Creator:
Shane Hathaway
Created:
2004-01-01 14:26:48 UTC
Size:
956 bytes
patch
obsolete
>--- portage.py.orig 2004-01-01 17:08:16.000000000 -0500 >+++ portage.py 2004-01-01 17:05:42.000000000 -0500 >@@ -3677,6 +3677,13 @@ > self.frozen=0 > #overlays="overlay roots" > self.overlays=[] >+ self.local_keywords = {} # {'cat/pkg-version': 'keywords'} >+ if os.path.exists('/etc/local_keywords'): >+ f = open('/etc/local_keywords', 'r') >+ for line in f.readlines(): >+ cpv, keywords = line.split(None, 1) >+ self.local_keywords[cpv.strip()] = keywords.strip() >+ f.close() > > def finddigest(self,mycpv): > try: >@@ -3972,7 +3979,9 @@ > #finally, we look at our internal cache entry and return the requested data. > returnme=[] > for x in mylist: >- if self.auxcache[cat][pkg].has_key(x): >+ if x == 'KEYWORDS' and self.local_keywords.has_key(mycpv): >+ returnme.append(self.local_keywords[mycpv]) >+ elif self.auxcache[cat][pkg].has_key(x): > returnme.append(self.auxcache[cat][pkg][x]) > else: > returnme.append("")
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 36970
: 22978