Bug 1250629 - desktop l10n script should accept a packageUrl property which points to en-US build, r=catlee

MozReview-Commit-ID: KiRSNsrlOJs

--HG--
extra : rebase_source : 58b1023ca731a817193320ae61668393c8316276
This commit is contained in:
Nick Thomas 2016-05-17 16:51:45 +12:00
Родитель e38cb113e6
Коммит 16019be2f4
1 изменённых файлов: 9 добавлений и 1 удалений

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

@ -356,8 +356,16 @@ class DesktopSingleLocale(LocalesMixin, ReleaseMixin, MockMixin, BuildbotMixin,
replace_dict = self.query_abs_dirs()
replace_dict['en_us_binary_url'] = config.get('en_us_binary_url')
# Override en_us_binary_url if passed as a buildbot property
self.read_buildbot_config()
# Override en_us_binary_url if packageUrl is passed as a property from
# the en-US build
if self.buildbot_config["properties"].get("packageUrl"):
packageUrl = self.buildbot_config["properties"]["packageUrl"]
# trim off the filename, the build system wants a directory
packageUrl = packageUrl.rsplit('/', 1)[0]
self.info("Overriding en_us_binary_url with %s" % packageUrl)
replace_dict['en_us_binary_url'] = packageUrl
# Override en_us_binary_url if passed as a buildbot property
if self.buildbot_config["properties"].get("en_us_binary_url"):
self.info("Overriding en_us_binary_url with %s" %
self.buildbot_config["properties"]["en_us_binary_url"])