]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
install-deps.sh: remove existing ceph-libboost of different version 40269/head 40285/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 05:47:30 +0000 (13:47 +0800)
commit14aec70c138a2e1958dc0b2817b617bf2e952e70
treed0e1ad857f4c4adb72b0b49efb7199b890121d93
parent1e0721a3b6b83468f23f391271e970f4c2b0c4ac
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: v1.72
- octopus, 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: trivial resolution
install-deps.sh