From: Zac Medico Date: Mon, 14 Apr 2008 23:54:18 +0000 (-0000) Subject: Bug #217664 - Fix emerge 'by path' package argument handling so that X-Git-Tag: v2.1.5~173 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4b78895332047d68ba45030d37bbed14357658d1;p=portage.git Bug #217664 - Fix emerge 'by path' package argument handling so that Package instances are properly cached (avoiding a KeyError later). (trunk r9898) svn path=/main/branches/2.1.2/; revision=9899 --- diff --git a/bin/emerge b/bin/emerge index 41fa76df8..8cfc847e4 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2337,6 +2337,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": @@ -2375,6 +2376,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):