Solver: Add more (optional) debugging output

Signed-off-by: Niels Thykier <niels@thykier.net>
debian
Niels Thykier 11 years ago
parent 1306eb664d
commit 72e67fee7a

@ -78,6 +78,9 @@ class InstallabilitySolver(InstallabilityTester):
for r in rms:
ptable[r] = key
if debug_solver > 1:
self._dump_groups(groups)
# This large loop will add ordering constrains on each "item"
# that migrates based on various rules.
for (item, adds, rms) in groups:
@ -297,3 +300,9 @@ class InstallabilitySolver(InstallabilityTester):
return result
def _dump_groups(self, groups):
print "N: === Groups ==="
for (item, adds, rms) in groups:
print "N: %s => A: %s, R: %s" % (str(item), str(adds), str(rms))
print "N: === END Groups ==="

Loading…
Cancel
Save