Make --prune and --depclean return before calculating dependencies if atoms are given...
authorZac Medico <zmedico@gentoo.org>
Sat, 21 Jul 2007 09:43:02 +0000 (09:43 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 21 Jul 2007 09:43:02 +0000 (09:43 -0000)
svn path=/main/branches/2.1.2/; revision=7337

bin/emerge

index 881923e94d97636734e026d06e201048489b3d87..518872475db6f1603b4c708a5866396ae8e5d2ea 100755 (executable)
@@ -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  ",