From fc556aca086e9d0ddf958ea151680b029ed5f009 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 7 Apr 2017 08:56:14 +0200 Subject: [PATCH] Add a sanity check for broken spec files Change-Id: I3607d8fe5f3c93a274e0a0671c1fb1b07e588974 Depends-On: Ia6eee41294e3105fe8e469144d07417c21b7220d --- tools/run_specchecks.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/run_specchecks.sh b/tools/run_specchecks.sh index a9d59db76..a43dbee07 100755 --- a/tools/run_specchecks.sh +++ b/tools/run_specchecks.sh @@ -18,6 +18,10 @@ for spec in $WORKSPACE/logs/*.suse ; do echo "$spec should not use '%setup'. Please use '%autosetup' instead." failed=1 } + rpmspec -q --qf "%{VERSION}\n" $spec >/dev/null || { + echo "$spec does not parse properly. Please check your syntax." + failed=1 + } done exit $failed