Changeset 2cc7a97 in rtems-source-builder


Ignore:
Timestamp:
Apr 15, 2013, 2:16:26 AM (6 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
b8ee74d
Parents:
ff91af2
Message:

PR 2117 - Only check the prefix is writable if installing and not a dry run.

Location:
source-builder/sb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/options.py

    rff91af2 r2cc7a97  
    261261            for m in um:
    262262                self.defaults.load(m)
    263         # Check the prefix permission
    264         if not self.no_install() and not path.ispathwritable(self.defaults['_prefix']):
    265             raise error.general('prefix is not writable: %s' % (path.host(self.defaults['_prefix'])))
    266263
    267264    def command(self):
  • source-builder/sb/setbuilder.py

    rff91af2 r2cc7a97  
    368368            deps = None
    369369        if not list_bset_cfg_files(opts, configs):
     370            prefix = opts.defaults.expand('%{_prefix}')
     371            if not opts.dry_run() and not opts.no_install() and \
     372                    not path.ispathwritable(prefix):
     373                raise error.general('prefix is not writable: %s' % (path.host(prefix)))
    370374            for bset in opts.params():
    371375                b = buildset(bset, configs, opts)
Note: See TracChangeset for help on using the changeset viewer.