aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/formatting.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-04-29 15:44:54 +0000
committerThierry Vignaud <tv@mandriva.org>2009-04-29 15:44:54 +0000
commita46304b7889bf47f6bc19004646dd6f774d78693 (patch)
treea0b2df42d86d04097839e153d02345474b29c9b3 /Rpmdrake/formatting.pm
parentcf9459f4a87d41375d9388c436e34f5da9ee2b35 (diff)
downloadrpmdrake-a46304b7889bf47f6bc19004646dd6f774d78693.tar
rpmdrake-a46304b7889bf47f6bc19004646dd6f774d78693.tar.gz
rpmdrake-a46304b7889bf47f6bc19004646dd6f774d78693.tar.bz2
rpmdrake-a46304b7889bf47f6bc19004646dd6f774d78693.tar.xz
rpmdrake-a46304b7889bf47f6bc19004646dd6f774d78693.zip
(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 bf9b8ae3..85c6833c 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 !$p->id; # if installed
+ return { name => N("None (installed)") } if !defined $p->id || $p->flag_installed; # if installed
URPM::pkg2media($urpm->{media}, $p) || undef;
}