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:
@@ -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):
|
||||
#
|
||||
|
Reference in New Issue
Block a user