From bf0015144f5904ab8236b6465f907d5ec12efddf Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 14 Apr 2008 23:52:12 +0000 Subject: [PATCH] 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 --- pym/_emerge/__init__.py | 2 ++ 1 file changed, 2 insertions(+) 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): -- 2.26.2