Detect a Cxc build from the options and automatically disabled installing.

This is similar to always providing --no-install on the command when building
a Cxc package.
This commit is contained in:
Chris Johns
2015-01-18 11:24:11 +11:00
parent 0392c5fe6c
commit 3963ac4aae
2 changed files with 17 additions and 2 deletions

View File

@@ -458,8 +458,10 @@ def run():
deps = None
if not list_bset_cfg_files(opts, configs):
prefix = opts.defaults.expand('%{_prefix}')
if not opts.dry_run() and not opts.no_install() and \
not path.ispathwritable(prefix):
if not opts.dry_run() and \
not not opts.canadian_cross() and \
not opts.no_install() and \
not path.ispathwritable(prefix):
raise error.general('prefix is not writable: %s' % (path.host(prefix)))
for bset in opts.params():
setbuilder_error = True