diff options
author | Michael Schroeder <mls@suse.de> | 2013-04-24 11:53:00 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2013-04-24 11:53:00 +0200 |
commit | b524d2b3431088271c73fbd33ac08ab5bf4ad374 (patch) | |
tree | 06474180382e22301beee638096816b394c61f59 /examples/pysolv | |
parent | 17e78ff9180750da4d830a88dc9b4a68d3e29b5a (diff) | |
download | libsolv-b524d2b3431088271c73fbd33ac08ab5bf4ad374.tar.gz libsolv-b524d2b3431088271c73fbd33ac08ab5bf4ad374.tar.bz2 libsolv-b524d2b3431088271c73fbd33ac08ab5bf4ad374.zip |
add SOLVER_TRANSACTION_OBSOLETE_IS_UPGRADE helper flag
Many users don't want to show the obsoletes as extra part of the
classification. Only makes sense when SOLVER_TRANSACTION_SHOW_OBSOLETES
is also specified.
Diffstat (limited to 'examples/pysolv')
-rwxr-xr-x | examples/pysolv | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pysolv b/examples/pysolv index ff71c42..b47b859 100755 --- a/examples/pysolv +++ b/examples/pysolv @@ -800,7 +800,7 @@ if trans.isempty(): print print "Transaction summary:" print -for cl in trans.classify(): +for cl in trans.classify(Transaction.SOLVER_TRANSACTION_SHOW_OBSOLETES | Transaction.SOLVER_TRANSACTION_OBSOLETE_IS_UPGRADE): if cl.type == Transaction.SOLVER_TRANSACTION_ERASE: print "%d erased packages:" % cl.count elif cl.type == Transaction.SOLVER_TRANSACTION_INSTALL: @@ -834,7 +834,7 @@ while True: sys.stdout.flush() yn = sys.stdin.readline().strip() if yn == 'y': break - if yn == 'n': sys.exit(1) + if yn == 'n' or yn == 'q': sys.exit(1) newpkgs = trans.newpackages() newpkgsfp = {} if newpkgs: |