Bug #217664 - Fix emerge 'by path' package argument handling so that
authorZac Medico <zmedico@gentoo.org>
Mon, 14 Apr 2008 23:54:18 +0000 (23:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 14 Apr 2008 23:54:18 +0000 (23:54 -0000)
Package instances are properly cached (avoiding a KeyError later).
(trunk r9898)

svn path=/main/branches/2.1.2/; revision=9899

bin/emerge

index 41fa76df8b7a26e70a860de0e0e5a05c8e9f7822..8cfc847e4b6015e40f6326e0ea1ef741aa521875 100755 (executable)
@@ -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):