Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 16395 Details for
Bug 26964
Pickling auxcache
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
updated patch
auxcache.patch (text/plain), 1.22 KB, created by
mathias stearn
on 2003-08-20 17:48:25 UTC
(
hide
)
Description:
updated patch
Filename:
MIME Type:
Creator:
mathias stearn
Created:
2003-08-20 17:48:25 UTC
Size:
1.22 KB
patch
obsolete
>--- portage.py 2003-08-16 03:28:52.000000000 -0400 >+++ portage.py 2003-08-20 00:15:51.000000000 -0400 >@@ -3365,17 +3365,24 @@ > > auxdbkeys=['DEPEND','RDEPEND','SLOT','SRC_URI','RESTRICT','HOMEPAGE','LICENSE','DESCRIPTION','KEYWORDS','INHERITED','IUSE','CDEPEND','PDEPEND'] > auxdbkeylen=len(auxdbkeys) >+dbdir="/var/cache/edb/" > class portdbapi(dbapi): > "this tree will scan a portage directory located at root (passed to init)" > def __init__(self): > self.root=settings["PORTDIR"] >- self.auxcache={} >+ try: >+ self.auxcache=cPickle.load(file(dbdir+"auxcache.dict")) >+ except: >+ self.auxcache={} > #if the portdbapi is "frozen", then we assume that we can cache everything (that no updates to it are happening) > self.xcache={} > self.frozen=0 > #overlays="overlay roots" > self.overlays=[] >- >+ >+ def savecache(self): >+ cPickle.dump(self.auxcache, file(dbdir+"auxcache.dict", "w"), 1) >+ > def finddigest(self,mycpv): > try: > mydig = self.findname2(mycpv)[0] > >--- emerge 2003-08-16 03:28:22.000000000 -0400 >+++ emerge 2003-08-20 00:06:22.000000000 -0400 >@@ -1551,6 +1551,7 @@ > > > def post_emerge(retval=0): >+ portage.portdb.savecache()b > auxpat=re.compile('^([^-]*)(-\d+)?\.info(-\d+)?(\.gz)?') > os.chdir("/") > global myopts
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 26964
:
16348
| 16395