From 45529e54d254ce1a14ccc028d76328d384a3757f Mon Sep 17 00:00:00 2001 From: Sören Tempel Date: Sun, 11 Mar 2018 15:20:39 +0100 Subject: 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. --- abuild.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'abuild.in') 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 -- cgit v1.2.3-60-g2f50