From b156f269298da49cdee9157b5c911193fa748651 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 15 Feb 2019 21:32:38 +0100 Subject: bin/create-build-support-package: more bugfixes --- bin/create-build-support-package | 16 ++++++++++++++-- 1 file 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 -- cgit v1.2.3-54-g00ecf