mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
sb: Do not create a build set tar file on error.
If creating build set tar files and using --keep-going do not create the tar file if any part of the set build fails.
This commit is contained in:
parent
169619c1f8
commit
2802080426
@ -297,6 +297,7 @@ class buildset:
|
||||
start = datetime.datetime.now()
|
||||
|
||||
mail_report = False
|
||||
have_errors = False
|
||||
|
||||
try:
|
||||
builds = []
|
||||
@ -324,7 +325,7 @@ class buildset:
|
||||
mail_report = False
|
||||
if deps is None:
|
||||
self.build_package(configs[s], b)
|
||||
if s == len(configs) - 1:
|
||||
if s == len(configs) - 1 and not have_errors:
|
||||
self.bset_tar(b)
|
||||
else:
|
||||
deps += b.config.includes()
|
||||
@ -332,6 +333,7 @@ class buildset:
|
||||
else:
|
||||
raise error.general('invalid config type: %s' % (configs[s]))
|
||||
except error.general, gerr:
|
||||
have_errors = True
|
||||
if b is not None:
|
||||
if self.build_failure is None:
|
||||
self.build_failure = b.name()
|
||||
|
Loading…
x
Reference in New Issue
Block a user