summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2018-03-11 15:20:39 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2018-03-11 15:56:02 +0100
commit45529e54d254ce1a14ccc028d76328d384a3757f (patch)
tree5d768c9934ffa928fe1f6ac4e851386b47cd56a5
parent051d2ced7461758ae8b07d6e6dec304d2f682525 (diff)
downloadabuild-45529e54d254ce1a14ccc028d76328d384a3757f.tar.bz2
abuild-45529e54d254ce1a14ccc028d76328d384a3757f.tar.xz
abuild.in: ensure that $triggers is not in $source
Since we already check that $install is not in $source is does make sense to also check that $triggers is not in $source.
-rw-r--r--abuild.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/abuild.in b/abuild.in
index c42d4e2..4a10362 100644
--- a/abuild.in
+++ b/abuild.in
@@ -180,6 +180,11 @@ default_sanitycheck() {
die "$p: trigger script does not match pkgname or any subpackage"
fi
+ if source_has "$f"; then
+ warning "You should not have \$triggers in source"
+ continue
+ fi
+
[ -e "$startdir"/$f ] || die "trigger script $f is missing"
done
if [ -n "$source" ]; then