summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/_emerge/__init__.py')
-rw-r--r--pym/_emerge/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 9177a090d..19dfc23e6 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -6414,7 +6414,7 @@ def action_depclean(settings, trees, ldpath_mtimes,
atom, parent, priority = remaining_atoms.pop()
pkgs = vardb.match(atom)
if not pkgs:
- if not atom.startswith("!") and priority > UnmergeDepPriority.SOFT:
+ if priority > UnmergeDepPriority.SOFT:
unresolveable.setdefault(atom, []).append(parent)
continue
if action == "depclean" and parent == "world" and myfiles:
@@ -6491,6 +6491,8 @@ def action_depclean(settings, trees, ldpath_mtimes,
print "Candidates:", atoms
for atom in atoms:
+ if atom.startswith("!"):
+ continue
remaining_atoms.append((atom, pkg, priority))
if "--quiet" not in myopts:
@@ -6607,6 +6609,8 @@ def action_depclean(settings, trees, ldpath_mtimes,
priority = priority_map[dep_type]
for atom in atoms:
+ if atom.startswith("!"):
+ continue
matches = vardb.match(atom)
if not matches:
continue