Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/create-build-support-package16
1 files changed, 14 insertions, 2 deletions
diff --git a/bin/create-build-support-package b/bin/create-build-support-package
index 5988acf..ad0fe30 100755
--- a/bin/create-build-support-package
+++ b/bin/create-build-support-package
@@ -24,7 +24,7 @@ usage() {
eval set -- "$(
getopt -o a:hw \
- --long arch \
+ --long arch: \
--long from: \
--long help \
--long shim: \
@@ -196,12 +196,24 @@ if [ -n "${source_package}" ]; then
>&2 printf 'Please sign %s with a build slave key and run\n' \
"${work_dir}/${new_pkg}"
# shellcheck disable=SC2016
- >&2 printf 'create-build-support-package --shim %s\n' \
+ >&2 printf 'create-build-support-package --arch %s --shim %s\n' \
+ "${repo_arch}" \
"${work_dir}/${new_pkg}"
elif [ -n "${shim_package}" ]; then
# insert shim_package into [build-support]
+ if [ $# -ne 0 ]; then
+ >&2 echo 'Too many arguments'
+ usage
+ fi
+
+ if [ ! -r "${shim_package}" ]; then
+ >&2 printf 'Cannot open file %s\n' \
+ "${shim_package}"
+ usage
+ fi
+
exec 8> "${package_database_lock_file}"
verbose_flock ${wait_for_lock} 8