From: Zac Medico Date: Mon, 14 Apr 2008 23:52:12 +0000 (-0000) Subject: Bug #217664 - Fix emerge 'by path' package argument handling so that X-Git-Tag: v2.2_pre6~156 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bf0015144f5904ab8236b6465f907d5ec12efddf;p=portage.git 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 --- 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):