[openwrt/openwrt] scripts,ipkg-build: Fix error message for invalid package name

LEDE Commits lede-commits at lists.infradead.org
Mon Dec 15 16:40:43 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/63bf77b801d59e7cf97b6bcd90aa040f8464d99c

commit 63bf77b801d59e7cf97b6bcd90aa040f8464d99c
Author: Karsten Sperling <ksperling at apple.com>
AuthorDate: Fri Sep 12 15:49:13 2025 +1200

    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 at apple.com>
    Link: https://github.com/openwrt/openwrt/pull/20077
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 scripts/ipkg-build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
 




More information about the lede-commits mailing list