Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/create-build-support-package
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-02-15 21:32:38 +0100
committerErich Eckner <git@eckner.net>2019-02-15 21:32:38 +0100
commitb156f269298da49cdee9157b5c911193fa748651 (patch)
tree61274b72cdfc2fcc3e52f1369486f58d5cbb1e49 /bin/create-build-support-package
parent83b5badfc4a8b30fc2c1d57cb12286b7586c351c (diff)
bin/create-build-support-package: more bugfixes
Diffstat (limited to 'bin/create-build-support-package')
-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