aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/formatting.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Rpmdrake/formatting.pm')
-rw-r--r--Rpmdrake/formatting.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Rpmdrake/formatting.pm b/Rpmdrake/formatting.pm
index 5c8586d4..5637c4c2 100644
--- a/Rpmdrake/formatting.pm
+++ b/Rpmdrake/formatting.pm
@@ -98,6 +98,7 @@ sub urpm_name {
sub pkg2medium {
my ($p, $urpm) = @_;
+ return if !ref $p;
return { name => N("None (installed)") } if !$p->id; # if installed
URPM::pkg2media($urpm->{media}, $p) || undef;
}