aboutsummaryrefslogtreecommitdiffstats
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
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)
-rw-r--r--NEWS1
-rw-r--r--Rpmdrake/formatting.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index b5908b2e..75ea82b2 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- rpmdrake:
+ o fix listing _one_ non installed package as installed (#50276)
o fix swedish translation that broke menu structure (#49989)
o default "Compute updates on startup" to yes
(fix "MandrivaUpdate and urpmi show updated rpm, while rpmdrake
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;
}