From: Zac Medico Date: Sat, 21 Jul 2007 09:42:34 +0000 (-0000) Subject: Make --prune and --depclean return before calculating dependencies if atoms are given... X-Git-Tag: v2.2_pre1~977 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cd56cdb4dbc86c88ac92928e4582f2b3d9554f6c;p=portage.git Make --prune and --depclean return before calculating dependencies if atoms are given but they don't match any packages. svn path=/main/trunk/; revision=7336 --- 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 ",