mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1229226 - Reject RESOURCE_FILES along DIST_SUBDIR or XPI_NAME. r=gps
Gecko only uses resource files in the GRE directory.
This commit is contained in:
parent
572b7a9ece
commit
aa6442b3ae
@ -641,6 +641,10 @@ class TreeMetadataEmitter(LoggingMixin):
|
|||||||
|
|
||||||
resources = context.get('RESOURCE_FILES')
|
resources = context.get('RESOURCE_FILES')
|
||||||
if resources:
|
if resources:
|
||||||
|
if context.get('DIST_SUBDIR') or context.get('XPI_NAME'):
|
||||||
|
raise SandboxValidationError(
|
||||||
|
'RESOURCES_FILES cannot be used with DIST_SUBDIR or '
|
||||||
|
'XPI_NAME.', context)
|
||||||
yield Resources(context, resources)
|
yield Resources(context, resources)
|
||||||
|
|
||||||
for pref in sorted(context['JS_PREFERENCE_FILES']):
|
for pref in sorted(context['JS_PREFERENCE_FILES']):
|
||||||
|
Loading…
Reference in New Issue
Block a user