]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
install-deps.sh: remove existing ceph-libboost of different version 40286/head
authorKefu Chai <kchai@redhat.com>
Sat, 20 Mar 2021 05:00:01 +0000 (13:00 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 21 Mar 2021 07:25:11 +0000 (15:25 +0800)
commit8d642e3d07d9c770fcc62d3f82bda9761a6b2256
tree149c6530e192737704b3a7afa16b9a529058cccf
parent23bf957ebb921ee424760735adbe8a6f796fd5e0
install-deps.sh: remove existing ceph-libboost of different version

we install different versions of precompiled ceph-libboost packages
for different branches when building and testing them on ubuntu test
nodes. for instance,

- nautilus, octopus: v1.72
- pacific: v1.73

they share the same set of test nodes. and these ceph-libboost packages
conflict with each other, because they install files to the same places.

in order to avoid the confliction, we should uninstall existing packages
before installing a different version of ceph-libboost packages.

ceph-libboost${version}-dev is a package providing the shared headers of
boost library, so, in this change we check if it is installed before
returning or removing the existing packages.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 939b147a55192c21e98d21cb380d0ec0b2ca84d5)

Conflicts:
install-deps.sh: use 1.72
install-deps.sh