diff options
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/p5solv | 4 | ||||
-rwxr-xr-x | examples/pysolv | 4 | ||||
-rwxr-xr-x | examples/rbsolv | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/examples/p5solv b/examples/p5solv index c3a994c..a5b270d 100755 --- a/examples/p5solv +++ b/examples/p5solv @@ -676,9 +676,9 @@ if ($cmd eq 'install' || $cmd eq 'erase' || $cmd eq 'up' || $cmd eq 'dup' || $cm } elsif ($c->{'type'} == $solv::Transaction::SOLVER_TRANSACTION_UPGRADED) { print "$c->{'count'} upgraded packages:\n"; } elsif ($c->{'type'} == $solv::Transaction::SOLVER_TRANSACTION_VENDORCHANGE) { - printf "$c->{'count'} vendor changes from '%s' to '%s':\n", $pool->id2str($c->{'fromid'}), $pool->id2str($c->{'toid'}); + printf "$c->{'count'} vendor changes from '%s' to '%s':\n", $c->fromdep()->str(), $c->todep()->str(); } elsif ($c->{'type'} == $solv::Transaction::SOLVER_TRANSACTION_ARCHCHANGE) { - printf "$c->{'count'} arch changes from '%s' to '%s':\n", $pool->id2str($c->{'fromid'}), $pool->id2str($c->{'toid'}); + printf "$c->{'count'} arch changes from '%s' to '%s':\n", $c->fromdep()->str(), $c->todep()->str(); } else { next; } 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(): diff --git a/examples/rbsolv b/examples/rbsolv index 9f75faf..7b12348 100755 --- a/examples/rbsolv +++ b/examples/rbsolv @@ -691,9 +691,9 @@ if cmd == 'install' || cmd == 'erase' || cmd == 'up' || cmd == 'dup' || cmd == ' elsif cl.type == Solv::Transaction::SOLVER_TRANSACTION_UPGRADED puts "#{cl.count} upgraded packages:" elsif cl.type == Solv::Transaction::SOLVER_TRANSACTION_VENDORCHANGE - puts "#{cl.count} vendor changes from '#{pool.id2str(cl.fromid)}' to '#{pool.id2str(cl.toid)}':" + puts "#{cl.count} vendor changes from '#{cl.fromdep}' to '#{cl.todep}':" elsif cl.type == Solv::Transaction::SOLVER_TRANSACTION_ARCHCHANGE - puts "#{cl.count} arch changes from '#{pool.id2str(cl.fromid)}' to '#{pool.id2str(cl.toid)}':" + puts "#{cl.count} arch changes from '#{cl.fromdep}' to '#{cl.todep}':" else next end |