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" || : }