]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Fix install-deps.sh script when crimson flag is disabled.
authorT K Chandra Hasan <t.k.chandra.hasan@ibm.com>
Thu, 27 Nov 2025 15:58:26 +0000 (21:28 +0530)
committerT K Chandra Hasan <t.k.chandra.hasan@ibm.com>
Thu, 27 Nov 2025 15:58:26 +0000 (21:28 +0530)
With ceph#66229 merged, crimson is now enabled by default for all the builds. So if we're trying to build with crimson disabled, the bcond must be reversed to install the relavant dependencies.

Signed-off-by: T K Chandra Hasan <t.k.chandra.hasan@ibm.com>
install-deps.sh

index 57bfb81117d6320b72d27ec129176fc1b3b7fb37..c7a26311e8aacc3dc419f09da18438db2fa44b00 100755 (executable)
@@ -39,8 +39,8 @@ function munge_ceph_spec_in {
     local OUTFILE=$1
     sed -e 's/@//g' < ceph.spec.in > $OUTFILE
     # http://rpm.org/user_doc/conditional_builds.html
-    if $with_crimson; then
-        sed -i -e 's/%bcond_with crimson/%bcond_without crimson/g' $OUTFILE
+    if $with_crimson; then
+        sed -i -e 's/%bcond_without crimson/%bcond_with crimson/g' $OUTFILE
     fi
     if $for_make_check; then
         sed -i -e 's/%bcond_with make_check/%bcond_without make_check/g' $OUTFILE