]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
install-deps.sh: remove existing ceph-libboost of different version 40272/head
authorKefu Chai <kchai@redhat.com>
Sat, 20 Mar 2021 05:00:01 +0000 (13:00 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 20 Mar 2021 05:06:08 +0000 (13:06 +0800)
commit939b147a55192c21e98d21cb380d0ec0b2ca84d5
treed8ac24b088e822acda90659c3e109273f35763ac
parentb4dceb02973ce8ef1f77b1e0a14907001bad1c1c
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>
install-deps.sh