[PATCH 1/2] sb/setbuilder: Install the build when stagging or configured to install

chrisj at rtems.org chrisj at rtems.org
Fri Sep 16 06:59:28 UTC 2022


From: Chris Johns <chrisj at rtems.org>

---
 source-builder/sb/setbuilder.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/source-builder/sb/setbuilder.py b/source-builder/sb/setbuilder.py
index f24ac87..3e16111 100644
--- a/source-builder/sb/setbuilder.py
+++ b/source-builder/sb/setbuilder.py
@@ -226,6 +226,9 @@ class buildset:
     def installing(self):
         return self.install_mode() == 'installing'
 
+    def installable(self):
+        return not self.opts.no_install() or self.staging()
+
     def staging(self):
         return not self.installing()
 
@@ -553,14 +556,14 @@ class buildset:
                        ', '.join([b.name() for b in builds])))
             if deps is None and not have_errors:
                 for b in builds:
-                    log.trace('_bset:   : %s: %r' % (self.install_mode(),
-                                                     b.installable()))
+                    log.trace('_bset:   : %s: installable=%r build-installable=%r' % \
+                              (self.install_mode(), self.installable(), b.installable()))
                     if b.installable():
                         prefix = b.config.expand('%{_prefix}')
                         buildroot = path.join(b.config.expand('%{buildroot}'), prefix)
                         if self.staging():
                             prefix = b.config.expand('%{stagingroot}')
-                        if not self.opts.no_install():
+                        if self.installable():
                             self.install(self.install_mode(), b.name(), buildroot, prefix)
             #
             # Sizes ...
-- 
2.37.1



More information about the devel mailing list