aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/hooks/pre-pkg/99-pkglint-subpkgs.sh4
1 files 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 9c8b9cb85da..add7fdd4a07 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" || :
}