From f90418ca333094b0a7ed1cd6781b14e46d16ae16 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sat, 9 Feb 2019 02:18:55 -0200 Subject: [PATCH] hooks/99-pkglint-subpkgs.sh: match name until end of line --- common/hooks/pre-pkg/99-pkglint-subpkgs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/hooks/pre-pkg/99-pkglint-subpkgs.sh b/common/hooks/pre-pkg/99-pkglint-subpkgs.sh index 9c8b9cb85d..add7fdd4a0 100644 --- a/common/hooks/pre-pkg/99-pkglint-subpkgs.sh +++ b/common/hooks/pre-pkg/99-pkglint-subpkgs.sh @@ -35,10 +35,10 @@ hook() { | tr " " "\n" | sort)" for s in $subpkgs; do - grep -q "^$s" <<< "$matches" || + grep -q "^$s$" <<< "$matches" || msg_warn "${s}_package() defined but will never be built.\n" done - grep -q "^$pkgname" <<< "$matches" && + grep -q "^$pkgname$" <<< "$matches" && msg_warn "$pkgname is sourcepkg but is in subpackages=.\n" || : }