diff options
author | Michael Schroeder <mls@suse.de> | 2013-09-20 15:15:59 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2013-09-20 15:15:59 +0200 |
commit | 5752066d0711c7956c1944c4e47c3d7718b49c27 (patch) | |
tree | a8734405be63df65a3770056d107b796f93aabdf /examples/pysolv | |
parent | b3ff8425e36a641ef13405e1db7be5484e3df5cb (diff) | |
download | libsolv-5752066d0711c7956c1944c4e47c3d7718b49c27.tar.gz libsolv-5752066d0711c7956c1944c4e47c3d7718b49c27.tar.bz2 libsolv-5752066d0711c7956c1944c4e47c3d7718b49c27.zip |
bindings: add stringification shortcut for problems
Also fixes bugs in the rbsolv example.
Diffstat (limited to 'examples/pysolv')
-rwxr-xr-x | examples/pysolv | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/pysolv b/examples/pysolv index a658eab..fe217e1 100755 --- a/examples/pysolv +++ b/examples/pysolv @@ -768,9 +768,7 @@ while True: break for problem in problems: print "Problem %d/%d:" % (problem.id, len(problems)) - r = problem.findproblemrule() - ri = r.info() - print ri.problemstr() + print problem solutions = problem.solutions() for solution in solutions: print " Solution %d:" % solution.id |