Commit 72488bf9 authored by Julien Cristau's avatar Julien Cristau
Browse files

Bug 1815281 - fix buildhub.json on mac and linux so buildhub2 can ingest them...

Bug 1815281 - fix buildhub.json on mac and linux so buildhub2 can ingest them again. r=glandium, a=dmeehan

Differential Revision: https://phabricator.services.mozilla.com/D168987
parent 1ceab491
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -57,8 +57,14 @@ def main():
    all_key_value_pairs = {
        x.lower(): buildconfig.substs[x] for x in important_substitutions
    }

    def stringify(x):
        if isinstance(x, (tuple, list)):
            return " ".join(x)
        return x or ""

    all_key_value_pairs.update(
        {x.lower(): buildconfig.substs.get(x, "") for x in other_substitutions}
        {x.lower(): stringify(buildconfig.substs.get(x)) for x in other_substitutions}
    )
    build_id = os.environ["MOZ_BUILD_DATE"]
    all_key_value_pairs.update(