From 52f09038e4d613fcee493459d1109e54f99838d8 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 25 Mar 2008 13:29:14 +0000 Subject: (pkg2medium) just skip non existing packages (#38793) [I suspect something like the bug fixed by commit r234617 on 2008-02-13: "(node_state) just skip non existing packages (#36529) (eg: when rpmdrake download info.xml.lzma on demand when searching or browsing whereas the package was updated in the mean time, the info file references the newer package whereas urpmi database only know the older version)"] --- Rpmdrake/formatting.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'Rpmdrake/formatting.pm') 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; } -- cgit v1.2.1