diff options
author | Sebastian Luther <SebastianLuther@gmx.de> | 2010-06-26 07:14:17 +0200 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-06-27 15:18:32 -0700 |
commit | 10c7d5d1a1329f846baad3659486c276dafddbba (patch) | |
tree | 0f5789c80e36b14e539505289f27a05436707edd | |
parent | eb664f5c5944e8cf4ee2133b8efb78ac754fc96b (diff) | |
download | portage-10c7d5d1a1329f846baad3659486c276dafddbba.tar.gz portage-10c7d5d1a1329f846baad3659486c276dafddbba.tar.bz2 portage-10c7d5d1a1329f846baad3659486c276dafddbba.zip |
Make --deselect handle all cases of atoms/sets on the cmd line and in @world (bug 325591)
-rw-r--r-- | pym/_emerge/actions.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index 9e2c88fe0..bc013483f 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -1182,11 +1182,13 @@ def action_deselect(settings, trees, opts, atoms): for atom in world_set: for arg_atom in expanded_atoms: if arg_atom.startswith(SETPREFIX): - if arg_atom == atom: + if atom.startswith(SETPREFIX) and \ + arg_atom == atom: discard_atoms.add(atom) break else: - if arg_atom.intersects(atom) and \ + if not atom.startswith(SETPREFIX) and \ + arg_atom.intersects(atom) and \ not (arg_atom.slot and not atom.slot): discard_atoms.add(atom) break |