summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2022-09-16 16:55:41 +1000
committerChris Johns <chrisj@rtems.org>2022-09-17 08:35:12 +1000
commit6afc04b3328351c34d961e8bd6441aaddbeb3c0a (patch)
tree51a7ba08028683a432cdf8be6d4a8e43628bb32d
parentrtems/kernel: Support deployment standard buildset configs (diff)
downloadrtems-source-builder-6afc04b3328351c34d961e8bd6441aaddbeb3c0a.tar.bz2
sb/setbuilder: Install the build when stagging or configured to install
Updates #4716
-rw-r--r--source-builder/sb/setbuilder.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/source-builder/sb/setbuilder.py b/source-builder/sb/setbuilder.py
index 1452aca..9836e9b 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 ...