index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/create-build-support-package | 16 |
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 |