From c6bf311015cf9e1413170a6d112df6562cfbd7d2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 17 Dec 2006 20:41:49 +0000 Subject: [PATCH] Add --debug support for --depclean. svn path=/main/trunk/; revision=5311 --- bin/emerge | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/bin/emerge b/bin/emerge index bd53fb8b4..dfe4c1a34 100755 --- a/bin/emerge +++ b/bin/emerge @@ -4153,6 +4153,17 @@ def action_depclean(settings, trees, ldpath_mtimes, mydeps.append((" ".join(myaux.values()), hard)) usedef = vardb.aux_get(pkg, ["USE"])[0].split() for depstr, priority in mydeps: + + if "--debug" in myopts: + print + print "Parent: ", pkg + print "Depstring:", depstr + print "Priority:", + if priority == soft: + print "soft" + else: + print "hard" + success, atoms = portage.dep_check(depstr, None, settings, myuse=usedef, trees=trees, myroot=settings["ROOT"]) if not success: @@ -4160,6 +4171,10 @@ def action_depclean(settings, trees, ldpath_mtimes, print "Error occurred while processing",pkg print str(atoms) return + + if "--debug" in myopts: + print "Candidates:", atoms + for atom in atoms: remaining_atoms.append((atom, pkg, priority)) -- 2.26.2