aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-28 20:43:53 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-28 20:43:53 +0000
commit5384179e51dbeb221021f6b716abfe9ed937d2e7 (patch)
treeccea72f71b588d45f8a7f4df90fcae9843123c5c
parentfaf71981ca6290846622e30166aaa7af5aff362d (diff)
downloadrpmdrake-5384179e51dbeb221021f6b716abfe9ed937d2e7.tar
rpmdrake-5384179e51dbeb221021f6b716abfe9ed937d2e7.tar.gz
rpmdrake-5384179e51dbeb221021f6b716abfe9ed937d2e7.tar.bz2
rpmdrake-5384179e51dbeb221021f6b716abfe9ed937d2e7.tar.xz
rpmdrake-5384179e51dbeb221021f6b716abfe9ed937d2e7.zip
(get_pkgs) consider name+arch as key when filtering out older
packages/updates, thus fixing only listing first arch seen (mga#5047) regression introduced in r3601 on March 20 2012: (get_pkgs) only display latest updates, not all of them (mga#2258, mga#4534) git-svn-id: svn+ssh://svn.mageia.org/svn/soft/rpmdrake/trunk@3601 5b7c3c08-40e5-403b-9995-ace06908e4af
-rw-r--r--NEWS3
-rw-r--r--Rpmdrake/pkg.pm2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index f22c9fdc..f90e3098 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,7 @@
- display a graphical error message when debug environment does not exist
+- rpmdrake:
+ o show all arches for a given package (mga#5047)
+ (regression introduced with only "display latest updates" in 5.31)
Version 5.32 - 26 March 2012, Thierry Vignaud
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 5f222cdc..2f6bfe55 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -524,7 +524,7 @@ sub get_pkgs {
foreach my $pkg (@{$urpm->{depslist}}) {
update_pbar($gurpm);
$pkg->flag_upgrade or next;
- my $short_name = $pkg->name;
+ my $short_name = $pkg->name . $pkg->arch;
$l{$short_name} = $pkg if !$l{$short_name} || $l{$short_name}->compare($pkg);
}
my @installable_pkgs = map { my $n = $_->fullname; $all_pkgs{$n} = { pkg => $_ }; $n } values %l;