summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-09-10 17:50:39 +0100
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-09-10 17:50:39 +0100
commit40e5e8c7334d3e7512bc9bcb155cab8f74515039 (patch)
tree2e9ecdd09926611869db0f9d5036d82c5d30707e
parent9d9b421e2b2b589e98d50699b3a9007002c317bc (diff)
downloadmidipix_build-40e5e8c7334d3e7512bc9bcb155cab8f74515039.tar.bz2
midipix_build-40e5e8c7334d3e7512bc9bcb155cab8f74515039.tar.xz
subr/pkgtool_init.subr:pkgtoolp_init_getopts(): allow overriding ${PKGTOOL_PKG_NAME} w/ -s[ -s[..]].
-rw-r--r--subr/pkgtool_init.subr6
1 files changed, 1 insertions, 5 deletions
diff --git a/subr/pkgtool_init.subr b/subr/pkgtool_init.subr
index df5d19b8..4d096e12 100644
--- a/subr/pkgtool_init.subr
+++ b/subr/pkgtool_init.subr
@@ -61,11 +61,7 @@ pkgtoolp_init_getopts() {
esac; shift $((${OPTIND}-1)); OPTIND=1;
else case "${1}" in
*=*) rtl_set_var_unsafe "${1%%=*}" "${1#*=}"; ;;
- *) if [ -n "${PKGTOOL_PKG_NAME:-}" ]; then
- _rc=1; _status="Error: more than one package name specified.";
- else
- PKGTOOL_PKG_NAME="${1}";
- fi; ;;
+ *) PKGTOOL_PKG_NAME="${1}"; ;;
esac; shift;
fi;
done;