summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Sperling2025-09-12 03:49:13 +0000
committerHauke Mehrtens2025-12-16 00:41:45 +0000
commit946e43c3d80d9616b5f4cfeeb386a5c8f31a7b6a (patch)
tree30ca79599d71a4fbcfa13eef27f1a4fde9db9426
parent7f4272dc18eb150c19d3c80f21e6a62cce5495a5 (diff)
downloadopenwrt-946e43c3d80d9616b5f4cfeeb386a5c8f31a7b6a.tar.gz
scripts,ipkg-build: Fix error message for invalid package name
Use the correct variable ($pkg instead of $name) in the error message. Signed-off-by: Karsten Sperling <ksperling@apple.com> Link: https://github.com/openwrt/openwrt/pull/20077 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit 63bf77b801d59e7cf97b6bcd90aa040f8464d99c)
-rwxr-xr-xscripts/ipkg-build2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ipkg-build b/scripts/ipkg-build
index 6abcc58832..d2beb41844 100755
--- a/scripts/ipkg-build
+++ b/scripts/ipkg-build
@@ -45,7 +45,7 @@ pkg_appears_sane() {
arch="$(required_field Architecture)"
if echo "$pkg" | grep '[^a-zA-Z0-9_.+-]'; then
- echo "*** Error: Package name $name contains illegal characters, (other than [a-z0-9.+-])" >&2
+ echo "*** Error: Package name '$pkg' contains illegal characters, (other than [a-z0-9.+-])" >&2
PKG_ERROR=1;
fi