Fix broken logic for --update greedy slot atoms in
authorZac Medico <zmedico@gentoo.org>
Wed, 7 Nov 2007 08:15:49 +0000 (08:15 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 7 Nov 2007 08:15:49 +0000 (08:15 -0000)
depgraph.select_files().

svn path=/main/trunk/; revision=8452

pym/_emerge/__init__.py

index 66af6395746f6338b17f3284ee6478a86f058d9d..7cf132cd403f6f766a94e576ec8f919df942fcbd 100644 (file)
@@ -1819,12 +1819,14 @@ class depgraph(object):
                                        print
                                        return False, myfavorites
 
-               if "--update" in self.myopts and not mysets:
+               if "--update" in self.myopts:
                        # Enable greedy SLOT atoms for atoms given as arguments.
                        # This is currently disabled for sets since greedy SLOT
                        # atoms could be a property of the set itself.
                        greedy_atoms = []
                        for myarg, atom in arg_atoms:
+                               if myarg.startswith(SETPREFIX):
+                                       continue
                                greedy_atoms.append((myarg, atom))
                                for greedy_atom in self._greedy_slot_atoms(myroot, atom):
                                        greedy_atoms.append((myarg, greedy_atom))