From 4b78895332047d68ba45030d37bbed14357658d1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 14 Apr 2008 23:54:18 +0000 Subject: [PATCH] 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 --- bin/emerge | 2 ++ 1 file changed, 2 insertions(+) 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): -- 2.26.2