From b7916224c604610ff38f367abe87956888b13350 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Mon, 5 Nov 2012 15:47:15 +0100 Subject: more swig trickery: add a "DepId" type that can take a Dep pointer or an Id --- examples/p5solv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/p5solv') 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; } -- cgit v1.2.3