aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-06-12 16:12:31 +0000
committerThierry Vignaud <tv@mandriva.org>2007-06-12 16:12:31 +0000
commit9cd324937a62f1feb597472acb79a23048dbaa35 (patch)
tree360956392d218d3867792298141208a9d90e7af4
parentfe9a1edcd22047e697751b71013d323efd69bdff (diff)
downloadrpmdrake-9cd324937a62f1feb597472acb79a23048dbaa35.tar
rpmdrake-9cd324937a62f1feb597472acb79a23048dbaa35.tar.gz
rpmdrake-9cd324937a62f1feb597472acb79a23048dbaa35.tar.bz2
rpmdrake-9cd324937a62f1feb597472acb79a23048dbaa35.tar.xz
rpmdrake-9cd324937a62f1feb597472acb79a23048dbaa35.zip
(pkg2medium) return "None" medium for already installed packages (#30556)
-rwxr-xr-xRpmdrake/formatting.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Rpmdrake/formatting.pm b/Rpmdrake/formatting.pm
index 5c404b0c..2987a7fb 100755
--- a/Rpmdrake/formatting.pm
+++ b/Rpmdrake/formatting.pm
@@ -77,6 +77,7 @@ sub urpm_name {
sub pkg2medium {
my ($p, $urpm) = @_;
my $id = $p->id;
+ return { name => N("None") } if !$id;
foreach (@{$urpm->{media}}) {
!$_->{ignore} && $id >= $_->{start} && $id <= $_->{end} and return $_;
}