diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | urpm.pm | 2 | ||||
-rwxr-xr-x | urpmq | 2 |
3 files changed, 4 insertions, 2 deletions
@@ -1,3 +1,5 @@ +- improve retrieving update descriptions API + Version 4.10.9 - 13 September 2007, by Pascal "Pixel" Rigaux - urpmi, urpme @@ -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; @@ -394,7 +394,7 @@ if ($options{list_aliases}) { $pkg->packager and printf "%-12s: %s\n", "Packager", $pkg->packager; $pkg->url and printf "%-12s: %s\n", "URL", $pkg->url; $pkg->summary and printf "%-12s: %s\n", "Summary", $pkg->summary; - my $updesc = $updates_descr->{$pkg->name}; + my $updesc = $updates_descr->{URPM::pkg2media($urpm->{media}, $pkg)->{name}}{$pkg->name}; $pkg->description && !$updesc->{description} and printf "%-12s:\n%s\n", "Description", $pkg->description; if ($updesc) { |