summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-08-23 18:06:04 +0200
committerMichael Schroeder <mls@suse.de>2013-08-23 18:06:04 +0200
commit8c5a5fc0bee0487a6f14c3e3aae539c3b0578a16 (patch)
treef3dda5145225be9722195ab141c2b904f9702f57 /examples
parentab12cf5851e4014d387f810ef1b0edf4138cbd63 (diff)
downloadlibsolv-8c5a5fc0bee0487a6f14c3e3aae539c3b0578a16.tar.gz
libsolv-8c5a5fc0bee0487a6f14c3e3aae539c3b0578a16.tar.bz2
libsolv-8c5a5fc0bee0487a6f14c3e3aae539c3b0578a16.zip
solv_parse_sig: clear return values at the beginning
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/pysolv10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/pysolv b/examples/pysolv
index a658eab..b93b136 100755
--- a/examples/pysolv
+++ b/examples/pysolv
@@ -757,6 +757,7 @@ for job in jobs:
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':
@@ -798,6 +799,15 @@ while True:
# 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."