[ARVADOS] created: ce0a97360ac919f6a6a1a8d155bcb705069d9dbb
Git user
git at public.curoverse.com
Wed Sep 20 18:52:35 EDT 2017
at ce0a97360ac919f6a6a1a8d155bcb705069d9dbb (commit)
commit ce0a97360ac919f6a6a1a8d155bcb705069d9dbb
Author: Javier Bértoli <javier at curoverse.com>
Date: Wed Sep 20 19:51:54 2017 -0300
Add parameter for FPM so it removes old directories on upgrade
refs #12271
diff --git a/build/run-library.sh b/build/run-library.sh
index cf7755b..5fc494c 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
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list