repo-checker.pl: detect invalid package snippet and error out.

This commit is contained in:
Jimmy Berry 2017-06-30 00:05:06 -05:00
parent 0785f2bcfb
commit 05af37f740

View File

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