]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
debian: correct ceph-common relationship with older radosgw package 25115/head
authorMatthew Vernon <mv3@sanger.ac.uk>
Thu, 8 Nov 2018 17:23:36 +0000 (17:23 +0000)
committerMatthew Vernon <mv3@sanger.ac.uk>
Thu, 15 Nov 2018 10:44:38 +0000 (10:44 +0000)
commit3e59f1ad3f86a9dc500092c679fa7509b097480f
tree37c7d38c7ee556b1cb1e300e844e8bccb818ded9
parent26b8bde039068b4d804031a34706f7b3e7d23807
debian: correct ceph-common relationship with older radosgw package

Fixes: https://tracker.ceph.com/issues/37273
9fd30b93f7281fad70b93512f0a25e3465f5b225 moved
/etc/bash_completion.d/radosgw-admin from radosgw to ceph-common. This
means that if you try and install a newer ceph-common over an older
radosgw, there's a conflict, and the install fails:

```
Unpacking ceph-common (12.2.8-1xenial) over (10.2.9-0ubuntu0.16.04.1) ...
dpkg: error processing archive ceph-common_12.2.8-1xenial_amd64.deb (--install):
 trying to overwrite '/etc/bash_completion.d/radosgw-admin', which is also in package radosgw 10.2.9-0ubuntu0.16.04.1
```

Per Debian policy (
https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-in-other-packages
) the correct way to handle a package taking over a file is for a
versioned Replaces and Breaks.

The change went into 12.0.3, so this commit adds Replaces and Breaks
against radosgw less than that version. It should be backported to
Luminous to avoid issues with upgrades from older versions (Jewel and
Kraken).

Signed-off-by: Matthew Vernon <mv3@sanger.ac.uk>
(cherry picked from commit dd24ddcbf78104ec2370fc3e956984a57cde670b)
debian/control