diff options
author | Michael Schroeder <mls@suse.de> | 2012-11-05 15:47:15 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2012-11-05 15:47:15 +0100 |
commit | b7916224c604610ff38f367abe87956888b13350 (patch) | |
tree | d42f4befa0707fc84a02eb8ca254b5038182cfd7 /examples/p5solv | |
parent | 39e42353de5946b3b6f706dcd6d3b438a230009d (diff) | |
download | libsolv-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/p5solv')
-rwxr-xr-x | examples/p5solv | 4 |
1 files changed, 2 insertions, 2 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; } |