Make --deselect more careful about repo atoms.
authorZac Medico <zmedico@gentoo.org>
Thu, 7 Oct 2010 06:58:58 +0000 (23:58 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 7 Oct 2010 06:58:58 +0000 (23:58 -0700)
pym/_emerge/actions.py

index b7cfd4230f75abd29284b0300ae054e46c322aa4..49623aa0c31d7dde859a05c0f84881da3bb7334e 100644 (file)
@@ -1228,7 +1228,8 @@ def action_deselect(settings, trees, opts, atoms):
                                else:
                                        if not atom.startswith(SETPREFIX) and \
                                                arg_atom.intersects(atom) and \
-                                               not (arg_atom.slot and not atom.slot):
+                                               not (arg_atom.slot and not atom.slot) and \
+                                               not (arg_atom.repo and not atom.repo):
                                                discard_atoms.add(atom)
                                                break
                if discard_atoms: