From 0a267014dfaf585ba8463724114cd5abf024cdad Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 14 Sep 2007 13:02:31 +0000 Subject: (get_updates_description) index by medium then by package ; we previously only index by raw package name (w/o version and w/o arch) which resulted in packages being overwritten (ie on a biarch, we would only saw one of both ia32 & x86_64 packages) --- urpm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'urpm.pm') diff --git a/urpm.pm b/urpm.pm index 9241ddb2..f75da88b 100644 --- a/urpm.pm +++ b/urpm.pm @@ -257,7 +257,7 @@ sub get_updates_description { if (exists $cur->{importance} && !member($cur->{importance}, qw(security bugfix))) { $cur->{importance} = 'normal'; } - $update_descr{$_} = $cur foreach @{$cur->{pkgs} || []}; + $update_descr{$medium->{name}}{$_} = $cur foreach @{$cur->{pkgs} || []}; $cur = { pkgs => [ split /\s/, $1 ], medium => $medium->{name} }; $section = 'pkg'; next; -- cgit v1.2.1