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:
Chris Johns
2013-04-15 10:05:23 +10:00
parent 8508944647
commit 9994530920
3 changed files with 15 additions and 2 deletions

View File

@@ -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',