From: Frank Lichtenheld Date: Fri, 3 Oct 2008 10:03:15 +0000 (+0200) Subject: Packages::Template::languages(): Do not die if no language name is defined X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=09a39ee5d830aa05d4b6526c74f61dd956b04215;p=deb%2Fpackages.git Packages::Template::languages(): Do not die if no language name is defined --- diff --git a/lib/Packages/Template.pm b/lib/Packages/Template.pm index b48e690..1a6aa0c 100644 --- a/lib/Packages/Template.pm +++ b/lib/Packages/Template.pm @@ -128,7 +128,8 @@ sub languages { my @printed_langs = (); foreach (@used_langs) { next if $_ eq $skip_lang; # Don't print the current language - unless (get_selfname($_)) { warn "missing language $_"; next } #DEBUG + unless (get_selfname($_)) { warn "missing language selfname $_"; next } #DEBUG + unless (get_language_name($_)) { warn "missing language name $_"; next } #DEBUG push @printed_langs, $_; } return [] unless scalar @printed_langs;