mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Make sources directory if it does not exist.
Remove the need to add the --force option. Also revert the force option back to the --force from --no-force and leave it so the user can bypass the host check of various packages.
This commit is contained in:
parent
251a42d399
commit
e5aa27f028
@ -141,9 +141,8 @@ class build:
|
||||
if local is None:
|
||||
raise error.general('source/patch path invalid')
|
||||
if not path.isdir(path.dirname(local)):
|
||||
if not self.opts.force():
|
||||
raise error.general('source path not found: %s; (--force to create)' \
|
||||
% (path.host(path.dirname(local))))
|
||||
_notice(self.opts,
|
||||
'Creating source directory: %s' % (os.path.relpath(path.host(path.dirname(local)))))
|
||||
self.mkdir(path.host(path.dirname(local)))
|
||||
if not path.exists(local):
|
||||
#
|
||||
|
@ -217,7 +217,7 @@ class command_line:
|
||||
_defaults = { 'params' : [],
|
||||
'warn-all' : '0',
|
||||
'quiet' : '0',
|
||||
'no-force' : '1',
|
||||
'force' : '0',
|
||||
'trace' : '0',
|
||||
'dry-run' : '0',
|
||||
'no-clean' : '0',
|
||||
@ -240,7 +240,7 @@ class command_line:
|
||||
'--targetcxxflags' : ('_targetcxxflags', False),
|
||||
'--libstdcxxflags' : ('_libstdcxxflags', False) }
|
||||
|
||||
_long_true_opts = { '--no-force' : '_force',
|
||||
_long_true_opts = { '--force' : '_force',
|
||||
'--trace' : '_trace',
|
||||
'--dry-run' : '_dry_run',
|
||||
'--warn-all' : '_warn_all',
|
||||
@ -256,7 +256,7 @@ class command_line:
|
||||
print '%s: [options] [args]' % (self.command_name)
|
||||
print 'Source Builder, an RTEMS Tools Project (c) 2012-2013 Chris Johns'
|
||||
print 'Options and arguments:'
|
||||
print '--no-force : Do not create directories that are missing'
|
||||
print '--force : Force the build to proceed'
|
||||
print '--trace : Trace the execution (not current used)'
|
||||
print '--dry-run : Do everything but actually run the build'
|
||||
print '--warn-all : Generate warnings'
|
||||
|
Loading…
x
Reference in New Issue
Block a user