From 3d4a467db398b88fc3534cbfa3ed79a454826749 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 29 Jun 2017 11:46:05 +0200 Subject: bin/common-functions: add sanity check after execution of make_source_info --- bin/common-functions | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/common-functions') diff --git a/bin/common-functions b/bin/common-functions index 2e55d5b..0d46382 100755 --- a/bin/common-functions +++ b/bin/common-functions @@ -141,6 +141,10 @@ generate_package_metadata() { echo "make_source_info failed." exit 1 fi + if [ ! -f "${file_prefix}.SRCINFO" ]; then + >&2 printf '"%s" not created by "make_source_info" - eh, what?' "${file_prefix}.SRCINFO" + exit 1 + fi # otherwise this just calls for trouble sed -i '/=\s*$/d' "${file_prefix}.SRCINFO" -- cgit v1.2.3-70-g09d2