Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 26964 | Differences between
and this patch

Collapse All | Expand All

(-)portage.py (-2 / +9 lines)
Lines 3365-3381 Link Here
3365
3365
3366
auxdbkeys=['DEPEND','RDEPEND','SLOT','SRC_URI','RESTRICT','HOMEPAGE','LICENSE','DESCRIPTION','KEYWORDS','INHERITED','IUSE','CDEPEND','PDEPEND']
3366
auxdbkeys=['DEPEND','RDEPEND','SLOT','SRC_URI','RESTRICT','HOMEPAGE','LICENSE','DESCRIPTION','KEYWORDS','INHERITED','IUSE','CDEPEND','PDEPEND']
3367
auxdbkeylen=len(auxdbkeys)
3367
auxdbkeylen=len(auxdbkeys)
3368
dbdir="/var/cache/edb/"
3368
class portdbapi(dbapi):
3369
class portdbapi(dbapi):
3369
	"this tree will scan a portage directory located at root (passed to init)"
3370
	"this tree will scan a portage directory located at root (passed to init)"
3370
	def __init__(self):
3371
	def __init__(self):
3371
		self.root=settings["PORTDIR"]
3372
		self.root=settings["PORTDIR"]
3372
		self.auxcache={}
3373
		try:
3374
			self.auxcache=cPickle.load(file(dbdir+"auxcache.dict"))
3375
		except:
3376
			self.auxcache={}
3373
		#if the portdbapi is "frozen", then we assume that we can cache everything (that no updates to it are happening)
3377
		#if the portdbapi is "frozen", then we assume that we can cache everything (that no updates to it are happening)
3374
		self.xcache={}
3378
		self.xcache={}
3375
		self.frozen=0
3379
		self.frozen=0
3376
		#overlays="overlay roots"
3380
		#overlays="overlay roots"
3377
		self.overlays=[]
3381
		self.overlays=[]
3378
3382
		
3383
	def savecache(self):
3384
		cPickle.dump(self.auxcache, file(dbdir+"auxcache.dict", "w"), 1)		
3385
		
3379
	def finddigest(self,mycpv):
3386
	def finddigest(self,mycpv):
3380
		try:
3387
		try:
3381
			mydig   = self.findname2(mycpv)[0]
3388
			mydig   = self.findname2(mycpv)[0]
(-)emerge (+1 lines)
Lines 1551-1556 Link Here
1551
1551
1552
1552
1553
def post_emerge(retval=0):
1553
def post_emerge(retval=0):
1554
	portage.portdb.savecache()b
1554
	auxpat=re.compile('^([^-]*)(-\d+)?\.info(-\d+)?(\.gz)?')	
1555
	auxpat=re.compile('^([^-]*)(-\d+)?\.info(-\d+)?(\.gz)?')	
1555
	os.chdir("/")
1556
	os.chdir("/")
1556
	global myopts
1557
	global myopts

Return to bug 26964