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
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B

View file

@ -35,10 +35,10 @@ hook() {
| tr " " "\n" | sort)" | tr " " "\n" | sort)"
for s in $subpkgs; do for s in $subpkgs; do
grep -q "^$s" <<< "$matches" || grep -q "^$s$" <<< "$matches" ||
msg_warn "${s}_package() defined but will never be built.\n" msg_warn "${s}_package() defined but will never be built.\n"
done done
grep -q "^$pkgname" <<< "$matches" && grep -q "^$pkgname$" <<< "$matches" &&
msg_warn "$pkgname is sourcepkg but is in subpackages=.\n" || : msg_warn "$pkgname is sourcepkg but is in subpackages=.\n" || :
} }