summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Trhon <adam.trhon@tbs-biometrics.com>2017-09-02 18:23:46 +0200
committerAlejandro del Castillo <alejandro.delcastillo@ni.com>2017-09-11 12:29:24 -0500
commit51badc589a7433b9fa9cf5b6a9cf8e4270cdc6ca (patch)
treedf739580066d48726e53d6cf7afa92b24163d6f8
parent9ac94576bb9a71bb3a6af2ceac46106d460f3403 (diff)
downloadopkg-utils-51badc589a7433b9fa9cf5b6a9cf8e4270cdc6ca.tar.gz
opkg-utils-51badc589a7433b9fa9cf5b6a9cf8e4270cdc6ca.tar.bz2
opkg-utils-51badc589a7433b9fa9cf5b6a9cf8e4270cdc6ca.zip
opkg-build*: fix empty package name in error message
When opkg-build detects illegal character in package name it prints an error message with this name. Due to a wrong variable name the package name in the error message is empty. The same error occurs in opkg-buildpackage as well. This patch fixes both. Signed-off-by: Adam Trhon <adam.trhon@tbs-biometrics.com> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
-rwxr-xr-xopkg-build2
-rwxr-xr-xopkg-buildpackage2
2 files changed, 2 insertions, 2 deletions
diff --git a/opkg-build b/opkg-build
index e02eaca..0fe513a 100755
--- a/opkg-build
+++ b/opkg-build
@@ -108,7 +108,7 @@ You probably want to chown these to a system user: " >&2
[ "$?" -ne 0 ] && PKG_ERROR=1
if echo $pkg | grep '[^a-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
diff --git a/opkg-buildpackage b/opkg-buildpackage
index 719c9a5..b7c0e8c 100755
--- a/opkg-buildpackage
+++ b/opkg-buildpackage
@@ -66,7 +66,7 @@ pkg_appears_sane_control() {
required_field Description >/dev/null
if echo $pkg | grep '[^a-z0-9.+-]'; then
- echo "opkg-build: Error: Package name $name contains illegal characters, (other than [a-z0-9.+-])"
+ echo "opkg-build: Error: Package name $pkg contains illegal characters, (other than [a-z0-9.+-])"
PKG_ERROR=1;
fi