aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/formatting.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-06-01 14:30:50 +0000
committerThierry Vignaud <tv@mandriva.org>2009-06-01 14:30:50 +0000
commit69d00b3b71d53cc849799e701d77d267bfba5aab (patch)
tree05ced46786f4cad54e551539a764a930142706d4 /Rpmdrake/formatting.pm
parent81d32af03fb7337f5b0e7f1f9e97a42c22ae21cf (diff)
downloadrpmdrake-69d00b3b71d53cc849799e701d77d267bfba5aab.tar
rpmdrake-69d00b3b71d53cc849799e701d77d267bfba5aab.tar.gz
rpmdrake-69d00b3b71d53cc849799e701d77d267bfba5aab.tar.bz2
rpmdrake-69d00b3b71d53cc849799e701d77d267bfba5aab.tar.xz
rpmdrake-69d00b3b71d53cc849799e701d77d267bfba5aab.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)")
Diffstat (limited to 'Rpmdrake/formatting.pm')
-rw-r--r--Rpmdrake/formatting.pm2
1 files changed, 1 insertions, 1 deletions
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;
}