summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-06 23:58:58 -0700
committerZac Medico <zmedico@gentoo.org>2010-10-06 23:58:58 -0700
commitf826f389099a1e62b03db6184529800e4aa109d0 (patch)
treee135db590ca6f933b6919ee3188e6ed0b0a56b13 /pym
parent8d3c24081c973ebb71de4645f64dc053a6be0ca3 (diff)
downloadportage-f826f389099a1e62b03db6184529800e4aa109d0.tar.gz
portage-f826f389099a1e62b03db6184529800e4aa109d0.tar.bz2
portage-f826f389099a1e62b03db6184529800e4aa109d0.zip
Make --deselect more careful about repo atoms.
Diffstat (limited to 'pym')
-rw-r--r--pym/_emerge/actions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index b7cfd4230..49623aa0c 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -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: