Skip to content

Commit

Permalink
qa: add QA error 'build' file exist when ABTYPE is set to non 'self' …
Browse files Browse the repository at this point in the history
…value

this reduce chance of confusion when switch package between templates and build file
  • Loading branch information
stdmnpkg committed Jan 14, 2025
1 parent 6dc3c36 commit 6d0200a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qa/pre/variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ done
if ! grep -qF "$PKGSEC" "$AB/sets/section"; then
aberr "QA (E104): $PKGSEC not in sets/section." | tee -a "$SRCDIR"/abqaerr.log
fi

if arch_findfile -2 build && [[ "$ABTYPE" != "self" ]]; then
abdie "QA (E???): free-formed build script exist while using a template." | tee -a "$SRCDIR"/abqaerr.log
fi

0 comments on commit 6d0200a

Please sign in to comment.