From d61f94cc2e04e8b0e076231e6c3b66c420657aa1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 21 Jul 2007 09:43:02 +0000 Subject: [PATCH] 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 --- bin/emerge | 9 +++++++++ 1 file changed, 9 insertions(+) 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 ", -- 2.26.2