Skip to content

Commit

Permalink
scylla-machine-image:replace package during upgrade
Browse files Browse the repository at this point in the history
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: scylladb/scylla-enterprise-machine-image#51
  • Loading branch information
yaronkaikov committed Oct 30, 2023
1 parent 9c12695 commit bc8a38f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/debian/control.template
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion dist/redhat/scylla-machine-image.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit bc8a38f

Please sign in to comment.