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);
|
close(C);
|
||||||
|
|
||||||
# Detect corrupt cache file and rebuild.
|
# Detect corrupt cache file and rebuild.
|
||||||
if ($out =~ m/=Pkg: /) {
|
if ($out eq "" || $out =~ m/=Pkg: /) {
|
||||||
unlink($cachefile);
|
unlink($cachefile);
|
||||||
$out = '';
|
$out = '';
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ sub write_package($$) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $out = CreatePackageDescr::package_snippet($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";
|
print STDERR "ERROR: empty package snippet for: $name\n";
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user