mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
PR 2115 - Check prefix path write access before starting to build.
Added a check in the options post processing to check is the prefix path allows writes. No actual write check is made. just the permissions are checked. If the --no-install options is used the check is not made. Moved the --no-install option from the set builder to the options module.
This commit is contained in:
@@ -310,7 +310,7 @@ class buildset:
|
||||
builds += [b]
|
||||
else:
|
||||
raise
|
||||
if deps is None and not self.opts.get_arg('--no-install'):
|
||||
if deps is None and not self.opts.no_install():
|
||||
for b in builds:
|
||||
self.install(b.name(),
|
||||
b.config.expand('%{buildroot}'),
|
||||
@@ -352,7 +352,6 @@ def run():
|
||||
optargs = { '--list-configs': 'List available configurations',
|
||||
'--list-bsets': 'List available build sets',
|
||||
'--list-deps': 'List the dependent files.',
|
||||
'--no-install': 'Do not install the packages to the prefix.',
|
||||
'--no-report': 'Do not create a package report.',
|
||||
'--report-format': 'The report format (text, html, asciidoc).',
|
||||
'--bset-tar-file': 'Create a build set tar file',
|
||||
|
Reference in New Issue
Block a user