Our python3 packages should be marked as 'Replaces:' for the old python
authorWard Vandewege <ward@curii.com>
Tue, 4 May 2021 21:40:30 +0000 (17:40 -0400)
committerWard Vandewege <ward@curii.com>
Tue, 4 May 2021 21:40:30 +0000 (17:40 -0400)
packages, so that there are no "trying to overwrite" errors, e.g. when
upgrading python-crunchstat-summary from 2.0.4 to the latest 2.2.x
release.

refs #17498

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>

build/run-library.sh

index 06aec50501d4572c163d2f0a5ed88ba950e474eb..10760959008539f2bf6706c23136469af403d898 100755 (executable)
@@ -660,6 +660,10 @@ fpm_build_virtualenv () {
     COMMAND_ARR+=('--depends' "$i")
   done
 
+  for i in "${fpm_depends[@]}"; do
+    COMMAND_ARR+=('--replaces' "python-$PKG")
+  done
+
   # make sure the systemd service file ends up in the right place
   # used by arvados-docker-cleaner
   if [[ -e "${systemd_unit}" ]]; then