summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--urpm.pm2
-rwxr-xr-xurpmq2
3 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 91ff11a9..64c81034 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- improve retrieving update descriptions API
+
Version 4.10.9 - 13 September 2007, by Pascal "Pixel" Rigaux
- urpmi, urpme
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;
diff --git a/urpmq b/urpmq
index 3db4cdb1..eb66e9b4 100755
--- a/urpmq
+++ b/urpmq
@@ -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) {