X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/758d39fd7aee4d1989395eba2113f0f2538b30d1..1b44d67f865d92e1610fa283e7fa27cf91ed6a1d:/build/run-library.sh?ds=sidebyside diff --git a/build/run-library.sh b/build/run-library.sh index c7bc9538d1..32cf2057f1 100755 --- a/build/run-library.sh +++ b/build/run-library.sh @@ -148,8 +148,7 @@ handle_rails_package() { local -a pos_args=("$srcdir/=$railsdir" "$pkgname" "Curoverse, Inc." dir "$(cat "$version_file")") local license_arg="$license_path=$railsdir/$(basename "$license_path")" - # --iteration=5 accommodates the package script bugfixes #8371 and #8413. - local -a switches=(--iteration=5 + local -a switches=(--iteration=6 --after-install "$scripts_dir/postinst" --before-remove "$scripts_dir/prerm" --after-remove "$scripts_dir/postrm") @@ -178,8 +177,8 @@ fpm_build () { # pip). PACKAGE=$1 shift - # The name of the package to build. Defaults to $PACKAGE. - PACKAGE_NAME=${1:-$PACKAGE} + # The name of the package to build. + PACKAGE_NAME=$1 shift # Optional: the vendor of the package. Should be "Curoverse, Inc." for # packages of our own software. Passed to fpm --vendor. @@ -238,7 +237,7 @@ fpm_build () { COMMAND_ARR+=('--verbose' '--log' 'info') fi - if [[ "$PACKAGE_NAME" != "$PACKAGE" ]]; then + if [[ -n "$PACKAGE_NAME" ]]; then COMMAND_ARR+=('-n' "$PACKAGE_NAME") fi @@ -265,6 +264,9 @@ fpm_build () { "${PACKAGE%%=/*}" # backports ("llfuse==0.41.1" => "backports/python-llfuse") "${WORKSPACE}/backports/${PACKAGE_TYPE}-${PACKAGE%%[<=>]*}") + if [[ -n "$PACKAGE_NAME" ]]; then + fpm_dirs+=("${WORKSPACE}/backports/${PACKAGE_NAME}") + fi for pkgdir in "${fpm_dirs[@]}"; do fpminfo="$pkgdir/fpm-info.sh" if [[ -e "$fpminfo" ]]; then @@ -391,4 +393,3 @@ report_outcomes() { done fi } -