repo-checker.pl: handle empty string snippet.

This commit is contained in:
Jimmy Berry 2017-07-10 19:43:26 -05:00
parent 3b85406396
commit c7632e44cb
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ sub package_snippet($) {
close(C);
# Detect corrupt cache file and rebuild.
if ($out =~ m/=Pkg: /) {
if ($out eq "" || $out =~ m/=Pkg: /) {
unlink($cachefile);
$out = '';
}

View File

@ -60,7 +60,7 @@ sub write_package($$) {
}
my $out = CreatePackageDescr::package_snippet($package);
if ($out =~ m/=Pkg: /) {
if ($out eq "" || $out =~ m/=Pkg: /) {
print STDERR "ERROR: empty package snippet for: $name\n";
exit(1);
}