From 7ae2482576e7c9130737fb5ccb9d9137b4f24e8b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 21 Jul 2007 03:38:13 +0000 Subject: [PATCH] Hint about --nodeps if --prune doesn't find anything to prune. Also enable reverse dependency display for global depclean. (trunk r7327) svn path=/main/branches/2.1.2/; revision=7328 --- bin/emerge | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/emerge b/bin/emerge index 918745c12..45f7c664e 100755 --- a/bin/emerge +++ b/bin/emerge @@ -5484,6 +5484,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): @@ -5492,13 +5494,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"], -- 2.26.2