aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-06-01 14:31:24 +0000
committerThierry Vignaud <tv@mandriva.org>2009-06-01 14:31:24 +0000
commita7d92d96b82cd05add23d36f0e1207d4440c6e50 (patch)
tree64b8b41d4a26cf376f25016fbc92efe54054eda9
parent38d938879ce5613cc4246b7defa85c57ced7b2d8 (diff)
downloadrpmdrake-a7d92d96b82cd05add23d36f0e1207d4440c6e50.tar
rpmdrake-a7d92d96b82cd05add23d36f0e1207d4440c6e50.tar.gz
rpmdrake-a7d92d96b82cd05add23d36f0e1207d4440c6e50.tar.bz2
rpmdrake-a7d92d96b82cd05add23d36f0e1207d4440c6e50.tar.xz
rpmdrake-a7d92d96b82cd05add23d36f0e1207d4440c6e50.zip
(pkg2medium) revert part of r257150 from 2009-04-29 (considering the
installed flag), thus fixing not displaying importance and reasons of updates (b/c we wrongly though that the medium was "None (installed)" instead of eg: "Main Updates") (#51118) (r257150 was: "(pkg2medium) fix listing _one_ non installed package as installed (#50276)") (backported from trunk)
-rw-r--r--NEWS2
-rw-r--r--Rpmdrake/formatting.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index d7d380f8..2db2d42b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,6 @@
- rpmdrake:
+ o fix not displaying importance and reasons of updates (#51118)
+ (regression introduced by #50276 fix in 5.16.2)
o list googleearth as a GUI app
Version 5.16.4 - 13 May 2009, Thierry Vignaud
diff --git a/Rpmdrake/formatting.pm b/Rpmdrake/formatting.pm
index 85c6833c..a94e0dc0 100644
--- a/Rpmdrake/formatting.pm
+++ b/Rpmdrake/formatting.pm
@@ -99,7 +99,7 @@ sub urpm_name {
sub pkg2medium {
my ($p, $urpm) = @_;
return if !ref $p;
- return { name => N("None (installed)") } if !defined $p->id || $p->flag_installed; # if installed
+ return { name => N("None (installed)") } if !defined $p->id; # if installed
URPM::pkg2media($urpm->{media}, $p) || undef;
}