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

pym/emerge/__init__.py

index 64706cd998341ce266eb39d1f257dd92333d49e1..485c22c9a8fcc8de43faae7095cfcd91a4a719a3 100644 (file)
@@ -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  ",