From: Zac Medico Date: Sat, 21 Jul 2007 09:43:02 +0000 (-0000) Subject: Make --prune and --depclean return before calculating dependencies if atoms are given... X-Git-Tag: v2.1.3~28 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d61f94cc2e04e8b0e076231e6c3b66c420657aa1;p=portage.git Make --prune and --depclean return before calculating dependencies if atoms are given but they don't match any packages. (trunk r7336) svn path=/main/branches/2.1.2/; revision=7337 --- diff --git a/bin/emerge b/bin/emerge index 881923e94..518872475 100755 --- a/bin/emerge +++ b/bin/emerge @@ -5302,6 +5302,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 ",