diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-03-25 13:29:14 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-03-25 13:29:14 +0000 |
commit | 52f09038e4d613fcee493459d1109e54f99838d8 (patch) | |
tree | 2ac04cfb616b02b04c3c71afa2eb2ab2df0b44a3 | |
parent | c152dcb091a5d62489df4353d5b1c4ad6eabe69c (diff) | |
download | rpmdrake-52f09038e4d613fcee493459d1109e54f99838d8.tar rpmdrake-52f09038e4d613fcee493459d1109e54f99838d8.tar.gz rpmdrake-52f09038e4d613fcee493459d1109e54f99838d8.tar.bz2 rpmdrake-52f09038e4d613fcee493459d1109e54f99838d8.tar.xz rpmdrake-52f09038e4d613fcee493459d1109e54f99838d8.zip |
(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)"]
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | Rpmdrake/formatting.pm | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -1,3 +1,5 @@ +- workaround crashing while performing medium name lookup (#38793) + Version 4.9.7 - 21 March 2008, Thierry Vignaud - make the focus default on "yes" in yes/no dialogs 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; } |