X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/bb91f86ea02e3535e3953ee0916dd6877bf585f7..83bd8999a9cc528ff0169d19bd9d974760a59a45:/build/run-library.sh diff --git a/build/run-library.sh b/build/run-library.sh index cf7755b68d..5fc494cdf5 100755 --- a/build/run-library.sh +++ b/build/run-library.sh @@ -365,6 +365,15 @@ fpm_build () { COMMAND_ARR+=(--deb-ignore-iteration-in-dependencies) fi + # 12271 - As FPM-generated packages don't include scripts by default, the + # packages cleanup on upgrade depends on files being listed on the %files + # section in the generated SPEC files. To remove DIRECTORIES, they need to + # be listed in that sectiontoo, so we need to add this parameter to properly + # remove lingering dirs. + if [[ rpm = "$FORMAT" ]]; then + COMMAND_ARR+=('--rpm-auto-add-directories') + fi + if [[ "${DEBUG:-0}" != "0" ]]; then COMMAND_ARR+=('--verbose' '--log' 'info') fi