X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FCommon.pm;h=9305d3f161e27bf410394b3412d385b9c9fb617d;hb=a844a562081aab9ae8489c293d2f38026b6e87b1;hp=2bc3e0dfe3280143f0243b6ae8df189376ead1a7;hpb=a2d0c09e87767baecc76442d11399b1c9ea17fe0;p=debbugs.git diff --git a/Debbugs/Common.pm b/Debbugs/Common.pm index 2bc3e0d..9305d3f 100644 --- a/Debbugs/Common.pm +++ b/Debbugs/Common.pm @@ -364,7 +364,7 @@ sub package_maintainer { for my $fn (@config{('source_maintainer_file', 'source_maintainer_file_override', 'pseudo_maint_file')}) { - next unless defined $fn; + next unless defined $fn and length $fn; if (not -e $fn) { warn "Missing source maintainer file '$fn'"; next; @@ -380,7 +380,7 @@ sub package_maintainer { for my $fn (@config{('maintainer_file', 'maintainer_file_override', 'pseudo_maint_file')}) { - next unless defined $fn; + next unless defined $fn and length $fn; if (not -e $fn) { warn "Missing maintainer file '$fn'"; next; @@ -471,7 +471,8 @@ sub getpseudodesc { return $_pseudodesc if defined $_pseudodesc; $_pseudodesc = {}; __add_to_hash($config{pseudo_desc_file},$_pseudodesc) if - defined $config{pseudo_desc_file}; + defined $config{pseudo_desc_file} and + length $config{pseudo_desc_file}; return $_pseudodesc; }