summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-17 20:41:49 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-17 20:41:49 +0000
commitc6bf311015cf9e1413170a6d112df6562cfbd7d2 (patch)
tree4f5ba874c7a9f0c23746e532dffaae0aa9d3b108
parentd007c47483c7f42e698169f570df6f4b7403dba1 (diff)
downloadportage-c6bf311015cf9e1413170a6d112df6562cfbd7d2.tar.gz
portage-c6bf311015cf9e1413170a6d112df6562cfbd7d2.tar.bz2
portage-c6bf311015cf9e1413170a6d112df6562cfbd7d2.zip
Add --debug support for --depclean.
svn path=/main/trunk/; revision=5311
-rwxr-xr-xbin/emerge15
1 files changed, 15 insertions, 0 deletions
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))