Improve support for slot deps atoms given on the command line. Thanks to Flameeyes...
authorZac Medico <zmedico@gentoo.org>
Mon, 4 Jun 2007 09:29:13 +0000 (09:29 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 4 Jun 2007 09:29:13 +0000 (09:29 -0000)
svn path=/main/trunk/; revision=6730

pym/emerge/__init__.py

index f14836dc18be87912b1e8019bda86b832e4ff742..67d70bee10f860c1b214d18148af76011fde24a2 100644 (file)
@@ -1080,8 +1080,7 @@ class depgraph:
                                self.blocker_parents.setdefault(
                                        tuple(mybigkey), set()).add(myparent)
                        return 1
-               if not arg and myroot == self.target_root:
-                       arg = portage.best_match_to_list(mykey, self.args_keys)
+
                # select the correct /var database that we'll be checking against
                vardbapi = self.trees[myroot]["vartree"].dbapi
                portdb = self.trees[myroot]["porttree"].dbapi
@@ -1093,6 +1092,10 @@ class depgraph:
 
                mydbapi = self.trees[myroot][self.pkg_tree_map[mytype]].dbapi
 
+               if not arg and myroot == self.target_root:
+                       cpv_slot = "%s:%s" % (mykey, mydbapi.aux_get(mykey, ["SLOT"])[0])
+                       arg = portage.best_match_to_list(cpv_slot, self.args_keys)
+
                if myuse is None:
                        self.pkgsettings[myroot].setcpv(mykey, mydb=portdb)
                        myuse = self.pkgsettings[myroot]["USE"].split()