diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-06-27 19:06:49 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-06-27 19:11:16 +0200 |
commit | a59f53492daef8f0bf1d8f3cca3f567de5aa5037 (patch) | |
tree | 567bc51c3a682891d98c2bdeabc3143b65f067b6 | |
parent | 9a645910e2160677b5e919fb54d67027e9d9e67e (diff) | |
download | rpmdrake-a59f53492daef8f0bf1d8f3cca3f567de5aa5037.tar rpmdrake-a59f53492daef8f0bf1d8f3cca3f567de5aa5037.tar.gz rpmdrake-a59f53492daef8f0bf1d8f3cca3f567de5aa5037.tar.bz2 rpmdrake-a59f53492daef8f0bf1d8f3cca3f567de5aa5037.tar.xz rpmdrake-a59f53492daef8f0bf1d8f3cca3f567de5aa5037.zip |
fix comparing packages
compare_pkg() is the right method to invoke,
compare() implies stringifying a URPM::Package which is not what we want
regarding version comparison
-rw-r--r-- | Rpmdrake/pkg.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 3d80d269..907def78 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -524,7 +524,7 @@ sub get_pkgs { update_pbar($gurpm); $pkg->flag_upgrade or next; my $key = pkg2medium($pkg, $urpm) . $pkg->name . $pkg->arch; - $l{$key} = $pkg if !$l{$key} || $l{$key}->compare($pkg); + $l{$key} = $pkg if !$l{$key} || $l{$key}->compare_pkg($pkg); } my @installable_pkgs = map { my $n = $_->fullname; $all_pkgs{$n} = { pkg => $_ }; $n } values %l; undef %l; |