aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-06-27 18:49:01 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-06-27 19:09:00 +0200
commitd082f871e95f3977dd3198090ed21e44a2a2ae0e (patch)
treecf309564f3f3a55a1e1625e8105e5d922db13c50 /Rpmdrake
parent41cbd29d520393bc1940217472c403ea4310732e (diff)
downloadrpmdrake-d082f871e95f3977dd3198090ed21e44a2a2ae0e.tar
rpmdrake-d082f871e95f3977dd3198090ed21e44a2a2ae0e.tar.gz
rpmdrake-d082f871e95f3977dd3198090ed21e44a2a2ae0e.tar.bz2
rpmdrake-d082f871e95f3977dd3198090ed21e44a2a2ae0e.tar.xz
rpmdrake-d082f871e95f3977dd3198090ed21e44a2a2ae0e.zip
keep only latest package per medium, not globally (mga#12766)
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/pkg.pm2
1 files changed, 1 insertions, 1 deletions
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;