aboutsummaryrefslogtreecommitdiff
path: root/common/hooks
diff options
context:
space:
mode:
authormaxice8 <thinkabit.ukim@gmail.com>2019-02-09 04:18:55 +0000
committermaxice8 <thinkabit.ukim@gmail.com>2019-02-09 04:19:56 +0000
commitf90418ca333094b0a7ed1cd6781b14e46d16ae16 (patch)
treeda12f2943f15802277565435e273179781df5309 /common/hooks
parent2c0a9f1f24b5ba9405093832693a776209d5bdcd (diff)
downloadvoid-packages-f90418ca333094b0a7ed1cd6781b14e46d16ae16.tar
void-packages-f90418ca333094b0a7ed1cd6781b14e46d16ae16.tar.gz
void-packages-f90418ca333094b0a7ed1cd6781b14e46d16ae16.tar.bz2
void-packages-f90418ca333094b0a7ed1cd6781b14e46d16ae16.tar.lz
void-packages-f90418ca333094b0a7ed1cd6781b14e46d16ae16.tar.xz
void-packages-f90418ca333094b0a7ed1cd6781b14e46d16ae16.tar.zst
void-packages-f90418ca333094b0a7ed1cd6781b14e46d16ae16.zip
hooks/99-pkglint-subpkgs.sh: match name until end of line
Diffstat (limited to 'common/hooks')
-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" || :
}