summaryrefslogtreecommitdiff
path: root/examples/pysolv
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-11-05 15:47:15 +0100
committerMichael Schroeder <mls@suse.de>2012-11-05 15:47:15 +0100
commitb7916224c604610ff38f367abe87956888b13350 (patch)
treed42f4befa0707fc84a02eb8ca254b5038182cfd7 /examples/pysolv
parent39e42353de5946b3b6f706dcd6d3b438a230009d (diff)
downloadlibsolv-b7916224c604610ff38f367abe87956888b13350.tar.gz
libsolv-b7916224c604610ff38f367abe87956888b13350.tar.bz2
libsolv-b7916224c604610ff38f367abe87956888b13350.zip
more swig trickery: add a "DepId" type that can take a Dep pointer or an Id
Diffstat (limited to 'examples/pysolv')
-rwxr-xr-xexamples/pysolv4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pysolv b/examples/pysolv
index 23e14c4..1400be8 100755
--- a/examples/pysolv
+++ b/examples/pysolv
@@ -807,9 +807,9 @@ if cmd == 'install' or cmd == 'erase' or cmd == 'up' or cmd == 'dup' or cmd == '
elif cl.type == Transaction.SOLVER_TRANSACTION_UPGRADED:
print "%d upgraded packages:" % cl.count
elif cl.type == Transaction.SOLVER_TRANSACTION_VENDORCHANGE:
- print "%d vendor changes from '%s' to '%s':" % (cl.count, pool.id2str(cl.fromid), pool.id2str(cl.toid))
+ print "%d vendor changes from '%s' to '%s':" % (cl.count, cl.fromdep(), cl.todep())
elif cl.type == Transaction.SOLVER_TRANSACTION_ARCHCHANGE:
- print "%d arch changes from '%s' to '%s':" % (cl.count, pool.id2str(cl.fromid), pool.id2str(cl.toid))
+ print "%d arch changes from '%s' to '%s':" % (cl.count, cl.fromdep(), cl.todep())
else:
continue
for p in cl.solvables():