summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/emerge/__init__.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index 64706cd99..485c22c9a 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -5339,6 +5339,15 @@ def action_depclean(settings, trees, ldpath_mtimes,
print
return
args_set.add(atom)
+ matched_packages = False
+ for x in args_set:
+ if vardb.match(x):
+ matched_packages = True
+ break
+ if not matched_packages:
+ portage.writemsg_stdout(
+ ">>> No packages selected for removal by %s\n" % action)
+ return
if "--quiet" not in myopts:
print "\nCalculating dependencies ",