aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/formatting.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Rpmdrake/formatting.pm')
-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 $_;
}