From bc8a38fcd19063bed190cdb707d6083689b4033c Mon Sep 17 00:00:00 2001 From: Yaron Kaikov Date: Tue, 11 Oct 2022 22:42:33 +0300 Subject: [PATCH] scylla-machine-image:replace package during upgrade When upgrading OSS to Enterprise we need to make sure `scylla-machine-image` will be replaced with `scylla-enterprise-machine-image` package Adding `Obsoletes` indication in the .spec file and controle.template so scylla-enterprise-machine-image is a replacement for scylla-machine-image. Closes: https://github.com/scylladb/scylla-enterprise-machine-image/issues/51 --- dist/debian/control.template | 1 + dist/redhat/scylla-machine-image.spec | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/debian/control.template b/dist/debian/control.template index dab56972..26a57fb2 100644 --- a/dist/debian/control.template +++ b/dist/debian/control.template @@ -9,6 +9,7 @@ Rules-Requires-Root: no Package: %{product}-machine-image Architecture: all Depends: %{product}, %{product}-python3, ${shlibs:Depends}, ${misc:Depends} +Replaces: scylla-machine-image Description: Scylla Machine Image Scylla is a highly scalable, eventually consistent, distributed, partitioned row DB. diff --git a/dist/redhat/scylla-machine-image.spec b/dist/redhat/scylla-machine-image.spec index 8b83b330..ced54377 100644 --- a/dist/redhat/scylla-machine-image.spec +++ b/dist/redhat/scylla-machine-image.spec @@ -10,7 +10,7 @@ Source0: %{name}-%{version}-%{release}.tar Requires: %{product} = %{version} %{product}-python3 curl BuildArch: noarch -Obsoletes: %{product}-ami +Obsoletes: scylla-machine-image %global _python_bytecompile_errors_terminate_build 0 %global __brp_python_bytecompile %{nil}