From: Sebastian Luther Date: Sun, 17 Oct 2010 16:56:00 +0000 (-0700) Subject: Specify repo in FakeVartree._aux_get_wrapper(). X-Git-Tag: v2.2_rc98~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3a10cb9cd1c2f99bd0ad0e41074d815673054746;p=portage.git Specify repo in FakeVartree._aux_get_wrapper(). --- diff --git a/pym/_emerge/FakeVartree.py b/pym/_emerge/FakeVartree.py index 64a39cf4d..b83dd654b 100644 --- a/pym/_emerge/FakeVartree.py +++ b/pym/_emerge/FakeVartree.py @@ -9,6 +9,7 @@ from _emerge.Package import Package from _emerge.PackageVirtualDbapi import PackageVirtualDbapi from portage.const import VDB_PATH from portage.dbapi.vartree import vartree +from portage.repository.config import _gen_valid_repo from portage.update import grab_updates, parse_updates, update_dbentries if sys.hexversion >= 0x3000000: @@ -87,8 +88,10 @@ class FakeVartree(vartree): self._aux_get_history.add(pkg) try: # Use the live ebuild metadata if possible. + repo = self._aux_get(pkg, ["repository"])[0] + repo = _gen_valid_repo(repo) live_metadata = dict(zip(self._portdb_keys, - self._portdb.aux_get(pkg, self._portdb_keys))) + self._portdb.aux_get(pkg, self._portdb_keys, myrepo=repo))) if not portage.eapi_is_supported(live_metadata["EAPI"]): raise KeyError(pkg) self.dbapi.aux_update(pkg, live_metadata)