mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1228444 - Validate that FINAL_TARGET_FILES source files exist. r=gps
This commit is contained in:
parent
ba507be622
commit
5dfa8936e1
@ -684,6 +684,14 @@ class TreeMetadataEmitter(LoggingMixin):
|
||||
|
||||
final_target_files = context.get('FINAL_TARGET_FILES')
|
||||
if final_target_files:
|
||||
for _, files in final_target_files.walk():
|
||||
for f in files:
|
||||
path = os.path.join(context.srcdir, f)
|
||||
if not os.path.exists(path):
|
||||
raise SandboxValidationError(
|
||||
'File listed in FINAL_TARGET_FILES does not exist:'
|
||||
' %s' % f, context)
|
||||
|
||||
yield FinalTargetFiles(context, final_target_files, context['FINAL_TARGET'])
|
||||
|
||||
dist_files = context.get('DIST_FILES')
|
||||
|
Loading…
Reference in New Issue
Block a user