Hint about --nodeps if --prune doesn't find anything to prune. Also enable reverse...
authorZac Medico <zmedico@gentoo.org>
Sat, 21 Jul 2007 03:37:08 +0000 (03:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 21 Jul 2007 03:37:08 +0000 (03:37 -0000)
svn path=/main/trunk/; revision=7327

pym/emerge/__init__.py

index 88637ee2f20dbc2a65e5a61fcaf4f8ec3a498e22..c20fcfeb325a60000503c0fd927f9d185f85b5fb 100644 (file)
@@ -5521,6 +5521,8 @@ def action_depclean(settings, trees, ldpath_mtimes,
                        for pkg in vardb.cpv_all():
                                if not fakedb.cpv_exists(pkg):
                                        cleanlist.append(pkg)
+                               elif "--verbose" in myopts:
+                                       show_parents(pkg)
        elif action == "prune":
                for atom in args_set:
                        for pkg in vardb.match(atom):
@@ -5529,13 +5531,17 @@ def action_depclean(settings, trees, ldpath_mtimes,
                                elif "--verbose" in myopts:
                                        show_parents(pkg)
 
-       if myfiles and not cleanlist:
+       if not cleanlist:
                portage.writemsg_stdout(
                        ">>> No packages selected for removal by %s\n" % action)
                if "--verbose" not in myopts:
                        portage.writemsg_stdout(
                                ">>> To see reverse dependencies, use %s\n" % \
                                        good("--verbose"))
+               if action == "prune":
+                       portage.writemsg_stdout(
+                               ">>> To ignore dependencies, use %s\n" % \
+                                       good("--nodeps"))
 
        if len(cleanlist):
                unmerge(settings, myopts, trees[settings["ROOT"]]["vartree"],