* [gentoo-commits] portage r13294 - main/trunk/pym/portage/dbapi
@ 2009-04-07 1:07 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-04-07 1:07 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2009-04-07 01:07:52 +0000 (Tue, 07 Apr 2009)
New Revision: 13294
Modified:
main/trunk/pym/portage/dbapi/porttree.py
Log:
Replace references to portdbapi.eclassdb with appropriate references for the
specific repo.
Modified: main/trunk/pym/portage/dbapi/porttree.py
===================================================================
--- main/trunk/pym/portage/dbapi/porttree.py 2009-04-07 00:57:35 UTC (rev 13293)
+++ main/trunk/pym/portage/dbapi/porttree.py 2009-04-07 01:07:52 UTC (rev 13294)
@@ -379,8 +379,8 @@
metadata = dict(i)
if metadata.get("INHERITED", False):
- metadata["_eclasses_"] = \
- self.eclassdb.get_eclass_data(metadata["INHERITED"].split())
+ metadata["_eclasses_"] = self._repo_info[repo_path
+ ].eclass_db.get_eclass_data(metadata["INHERITED"].split())
else:
metadata["_eclasses_"] = {}
@@ -418,6 +418,7 @@
if pregen_auxdb is not None:
auxdbs.append(pregen_auxdb)
auxdbs.append(self.auxdb[repo_path])
+ eclass_db = self._repo_info[repo_path].eclass_db
doregen = True
for auxdb in auxdbs:
@@ -437,7 +438,7 @@
eapi = '0'
if not (eapi[:1] == '-' and eapi_is_supported(eapi[1:])) and \
emtime == metadata['_mtime_'] and \
- self.eclassdb.is_eclass_data_valid(metadata['_eclasses_']):
+ eclass_db.is_eclass_data_valid(metadata['_eclasses_']):
doregen = False
if not doregen:
@@ -514,8 +515,8 @@
mycpv, myebuild, mylocation, mydata, emtime)
if mydata.get("INHERITED", False):
- mydata["_eclasses_"] = \
- self.eclassdb.get_eclass_data(mydata["INHERITED"].split())
+ mydata["_eclasses_"] = self._repo_info[mylocation
+ ].eclass_db.get_eclass_data(mydata["INHERITED"].split())
else:
mydata["_eclasses_"] = {}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-07 1:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-07 1:07 [gentoo-commits] portage r13294 - main/trunk/pym/portage/dbapi Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox