mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-23 19:31:55 +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:
|
||||
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…
x
Reference in New Issue
Block a user