17947: the Arvados python3-* CentOS packages should conflict with the
authorWard Vandewege <ward@curii.com>
Wed, 11 Aug 2021 19:29:07 +0000 (15:29 -0400)
committerWard Vandewege <ward@curii.com>
Wed, 11 Aug 2021 19:29:07 +0000 (15:29 -0400)
       corresponding older rh-python36-* version.

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

build/run-library.sh

index e404c0bc7c1e801d8d6cc4bd1d17567bd6c184c7..22bb065872e357aae2db7fc0437203d949c452df 100755 (executable)
@@ -621,6 +621,11 @@ fpm_build_virtualenv () {
   LICENSE_STRING=`grep license $WORKSPACE/$PKG_DIR/setup.py|cut -f2 -d=|sed -e "s/[',\\"]//g"`
   COMMAND_ARR+=('--license' "$LICENSE_STRING")
 
+  if [[ "$FORMAT" == "rpm" ]]; then
+    # Make sure to conflict with the old rh-python36 packages we used to publish
+    COMMAND_ARR+=('--conflicts' "rh-python36-python-$PKG")
+  fi
+
   if [[ "$DEBUG" != "0" ]]; then
     COMMAND_ARR+=('--verbose' '--log' 'info')
   fi