Bug 1276312 - Adjust validate_version() for esr r=jlund
MozReview-Commit-ID: 7tG2qM2YMEB
--- a/buildfarm/release/release-runner.py
+++ b/buildfarm/release/release-runner.py
@@ -246,18 +246,20 @@ def get_hash(path, hash_type="sha512"):
h = hashlib.new(hash_type)
with open(path, "rb") as f:
for chunk in iter(functools.partial(f.read, 4096), ''):
h.update(chunk)
return h.hexdigest()
def validate_graph_kwargs(queue, gpg_key_path, **kwargs):
+ # We don't export "esr" int the version
validate_version(repo_path=kwargs["repo_path"],
- revision=kwargs["revision"], version=kwargs["version"])
+ revision=kwargs["revision"],
+ version=kwargs["version"].replace("esr", ""))
# TODO: validate partials
# TODO: validate l10n changesets
platforms = kwargs.get('en_US_config', {}).get('platforms', {})
for platform in platforms.keys():
task_id = platforms.get(platform).get('task_id', {})
log.info('Performing release sanity for %s en-US binary', platform)
sanitize_en_US_binary(queue, task_id, gpg_key_path)