hooks/99-pkglint-subpkgs.sh: match name until end of line

This commit is contained in:
maxice8
2019-02-09 02:18:55 -02:00
parent 2c0a9f1f24
commit f90418ca33

View File

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