Skip to content

Commit

Permalink
dist: support smooth upgrade from enterprise to source availalbe
Browse files Browse the repository at this point in the history
When upgrading for example from `2024.1` to `2025.1` the package name is
not identical casuing the upgrade command to fail.

This makes packages upgradable from enterprise.

Related scylladb/scylladb#22420

Signed-off-by: Takuya ASADA <syuu@scylladb.com>
  • Loading branch information
syuu1228 authored and fruch committed Jan 29, 2025
1 parent 2d388cd commit 5f0b0ca
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 11 additions & 2 deletions dist/debian/control.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,14 @@ Architecture: any
Depends: %{product}-python3 (= ${binary:Version})
Conflicts: cassandra
Description: cqlsh is a Python-based command-line client for running CQL commands on a cassandra cluster.
Replaces: scylla-tools (<< 5.2~rc0)
Breaks: scylla-tools (<< 5.2~rc0)
Replaces: scylla-tools (<< 5.2~rc0), scylla-enterprise-cqlsh (<< 2025.1.0~)
Breaks: scylla-tools (<< 5.2~rc0), scylla-enterprise-cqlsh (<< 2025.1.0~)


Package: scylla-enterprise-cqlsh
Depends: %{product}-cqlsh (= ${binary:Version})
Architecture: all
Priority: optional
Section: oldlibs
Description: transitional package
This is a transitional package. It can safely be removed.
2 changes: 2 additions & 0 deletions dist/redhat/scylla-cqlsh.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Release: %{release}%{?dist}
Summary: cqlsh is a Python-based command-line client for running CQL commands on a cassandra cluster.
Group: Applications/Databases
Obsoletes: %{product}-tools < 5.2
Provides: scylla-enterprise-cqlsh = %{version}-%{release}
Obsoletes: scylla-enterprise-cqlsh < 2025.1.0

License: Apache
URL: http://www.scylladb.com/
Expand Down

0 comments on commit 5f0b0ca

Please sign in to comment.