diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-04-14 23:52:12 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-04-14 23:52:12 +0000 |
commit | bf0015144f5904ab8236b6465f907d5ec12efddf (patch) | |
tree | 14903cc44388efd6346f0ddf203994e05a344928 | |
parent | 6507674957bd65faff14a25bcfcd117f9a9f4501 (diff) | |
download | portage-bf0015144f5904ab8236b6465f907d5ec12efddf.tar.gz portage-bf0015144f5904ab8236b6465f907d5ec12efddf.tar.bz2 portage-bf0015144f5904ab8236b6465f907d5ec12efddf.zip |
Bug #217664 - Fix emerge 'by path' package argument handling so that
Package instances are properly cached (avoiding a KeyError later).
svn path=/main/trunk/; revision=9898
-rw-r--r-- | pym/_emerge/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index dad9b080a..e0382570f 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -2198,6 +2198,7 @@ class depgraph(object): pkg = Package(type_name="binary", root=myroot, cpv=mykey, built=True, metadata=metadata, onlydeps=onlydeps) + self._pkg_cache[pkg] = pkg args.append(PackageArg(arg=x, package=pkg, root_config=root_config)) elif ext==".ebuild": @@ -2236,6 +2237,7 @@ class depgraph(object): metadata["USE"] = pkgsettings["PORTAGE_USE"] pkg = Package(type_name="ebuild", root=myroot, cpv=mykey, metadata=metadata, onlydeps=onlydeps) + self._pkg_cache[pkg] = pkg args.append(PackageArg(arg=x, package=pkg, root_config=root_config)) elif x.startswith(os.path.sep): |