mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-08 17:51:11 +00:00
Solver: Add more (optional) debugging output
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
1306eb664d
commit
72e67fee7a
@ -78,6 +78,9 @@ class InstallabilitySolver(InstallabilityTester):
|
|||||||
for r in rms:
|
for r in rms:
|
||||||
ptable[r] = key
|
ptable[r] = key
|
||||||
|
|
||||||
|
if debug_solver > 1:
|
||||||
|
self._dump_groups(groups)
|
||||||
|
|
||||||
# This large loop will add ordering constrains on each "item"
|
# This large loop will add ordering constrains on each "item"
|
||||||
# that migrates based on various rules.
|
# that migrates based on various rules.
|
||||||
for (item, adds, rms) in groups:
|
for (item, adds, rms) in groups:
|
||||||
@ -297,3 +300,9 @@ class InstallabilitySolver(InstallabilityTester):
|
|||||||
|
|
||||||
return result
|
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…
x
Reference in New Issue
Block a user