From: Zac Medico Date: Sun, 17 Dec 2006 20:41:49 +0000 (-0000) Subject: Add --debug support for --depclean. X-Git-Tag: v2.1.2~281 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c6bf311015cf9e1413170a6d112df6562cfbd7d2;p=portage.git Add --debug support for --depclean. svn path=/main/trunk/; revision=5311 --- 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))