aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-06-27 19:06:49 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-06-27 19:11:16 +0200
commita59f53492daef8f0bf1d8f3cca3f567de5aa5037 (patch)
tree567bc51c3a682891d98c2bdeabc3143b65f067b6
parent9a645910e2160677b5e919fb54d67027e9d9e67e (diff)
downloadrpmdrake-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.pm2
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;