[jhbuild] Call ninja or make for cmake dist command.



commit 064699ea474ec3a8689a350ba16957a5a6be7199
Author: Damien Caliste <dcaliste free fr>
Date:   Thu Jan 6 10:23:50 2022 +0100

    Call ninja or make for cmake dist command.

 jhbuild/modtypes/cmake.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/jhbuild/modtypes/cmake.py b/jhbuild/modtypes/cmake.py
index 1bd44e32..df3852dc 100644
--- a/jhbuild/modtypes/cmake.py
+++ b/jhbuild/modtypes/cmake.py
@@ -130,9 +130,9 @@ class CMakeModule(MakeModule, NinjaModule, DownloadableModule):
     def do_dist(self, buildscript):
         buildscript.set_action(_('Creating tarball for'), self)
         if self.use_ninja:
-            self.make(buildscript, 'package_source')
-        else:
             self.ninja(buildscript, 'package_source')
+        else:
+            self.make(buildscript, 'package_source')
     do_dist.depends = [PHASE_CONFIGURE]
     do_dist.error_phases = [PHASE_FORCE_CHECKOUT, PHASE_CONFIGURE]
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]