hooks/99-pkglint-subpkgs.sh: match name until end of line
This commit is contained in:
parent
2c0a9f1f24
commit
f90418ca33
1 changed files with 2 additions and 2 deletions
|
@ -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" || :
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue