Move the reset of the per-root initializations into the loop.
authorZac Medico <zmedico@gentoo.org>
Sat, 9 Dec 2006 01:08:28 +0000 (01:08 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 9 Dec 2006 01:08:28 +0000 (01:08 -0000)
svn path=/main/trunk/; revision=5232

bin/emerge

index 7dd017cb02751c74b4813823e5acfa6498a544df..1df00966a30d13cbd6944660367e4e6b896b7299 100755 (executable)
@@ -752,6 +752,7 @@ class depgraph:
                self.pkgsettings = {}
                self.pkg_node_map = {}
                self.mydbapi = {}
+               self.useFlags = {}
                self.trees = {}
                for myroot in trees:
                        self.trees[myroot] = {}
@@ -771,23 +772,17 @@ class depgraph:
                                myslot = vardb.aux_get(pkg, ["SLOT"])[0]
                                fakedb.cpv_inject(pkg, metadata={"SLOT":myslot})
                        del vardb, fakedb
+                       self.useFlags[myroot] = {}
+                       if "--usepkg" in self.myopts:
+                               self.trees[myroot]["bintree"].populate(
+                                       "--getbinpkg" in self.myopts,
+                                       "--getbinpkgonly" in self.myopts)
                del trees
-               self.useFlags = {}
-               self.useFlags[self.target_root] = {}
-               if self.target_root != "/":
-                       self.useFlags["/"] = {}
 
                self.missingbins=[]
                self.digraph=portage.digraph()
                self.orderedkeys=[]
                self.outdatedpackages=[]
-               if "--usepkg" in self.myopts:
-                       self.trees["/"]["bintree"].populate(
-                               "--getbinpkg" in self.myopts, "--getbinpkgonly" in self.myopts)
-                       if self.target_root != "/":
-                               self.trees[self.target_root]["bintree"].populate(
-                                       "--getbinpkg" in self.myopts,
-                                       "--getbinpkgonly" in self.myopts)
                self.args_keys = []
                self.global_updates = {}
                self.blocker_digraph = digraph()