job.how |= solv.Job.SOLVER_CLEANDEPS
#pool.set_debuglevel(2)
-pool.set_debuglevel(3)
solver = pool.Solver()
solver.set_flag(solv.Solver.SOLVER_FLAG_SPLITPROVIDES, 1);
if cmd == 'erase':
# no problems, show transaction
trans = solver.transaction()
-
-for p in trans.newsolvables():
- (reason, rule) = solver.describe_decision(p)
- print "package", p
- print "reason", reason
- print "rule", rule
- if rule:
- print rule.info().problemstr()
-
del solver
if trans.isempty():
print "Nothing to do."