Bug 1496190 - Pre: Fail automation builds that check out l10n repos. r=Pike,Callek

Differential Revision: https://phabricator.services.mozilla.com/D15777

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nick Alexander 2019-01-07 19:22:39 +00:00
Родитель 2027f25d2b
Коммит e9a9a7afd8
1 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -183,14 +183,22 @@ L10N_CO = $(error You need to use either hg or git)
endif
endif
merge-%: IS_LANGUAGE_REPACK=1
merge-%: AB_CD=$*
merge-%:
# For nightly builds, we automatically check out missing localizations
# from l10n-central.
# from l10n-central. We never automatically check out in automation:
# automation builds check out revisions that have been signed-off by
# l10n drivers prior to use.
ifdef MOZ_AUTOMATION
if ! test -d $(L10NBASEDIR)/$(AB_CD) ; then \
echo 'Error: Automation requires l10n repositories to be checked out: $(L10NBASEDIR)/$(AB_CD)' ; \
exit 1 ; \
fi
endif
ifdef NIGHTLY_BUILD
@if ! test -d $(L10NBASEDIR)/$(AB_CD) ; then \
if ! test -d $(L10NBASEDIR)/$(AB_CD) ; then \
echo 'Checking out $(L10NBASEDIR)/$(AB_CD)' ; \
$(NSINSTALL) -D $(L10NBASEDIR) ; \
$(L10N_CO) ; \
fi