aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--Rpmdrake/pkg.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 53f3099d..ea1fe09a 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- rpmdrake:
+ o keep only latest package per medium, not globally (mga#12766)
- edit-urpm-sources:
o fix crashing when canceling browsing custom media path (mga#13268)
o fix down arrow button not working (mga#13572)
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index e9229b86..3d80d269 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -523,7 +523,7 @@ sub get_pkgs {
foreach my $pkg (@{$urpm->{depslist}}) {
update_pbar($gurpm);
$pkg->flag_upgrade or next;
- my $key = $pkg->name . $pkg->arch;
+ my $key = pkg2medium($pkg, $urpm) . $pkg->name . $pkg->arch;
$l{$key} = $pkg if !$l{$key} || $l{$key}->compare($pkg);
}
my @installable_pkgs = map { my $n = $_->fullname; $all_pkgs{$n} = { pkg => $_ }; $n } values %l;