repo-checker.pl: handle empty string snippet.
This commit is contained in:
parent
3b85406396
commit
c7632e44cb
@ -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 = '';
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user