Use build id as langpack version for reproducibility
authorMike Hommey <mh@glandium.org>
Fri, 12 Jul 2019 09:37:52 +0000 (18:37 +0900)
committerMike Hommey <glandium@debian.org>
Tue, 31 May 2022 20:24:22 +0000 (21:24 +0100)
Gbp-Pq: Topic debian-hacks
Gbp-Pq: Name Use-build-id-as-langpack-version-for-reproducibility.patch

python/mozbuild/mozbuild/action/langpack_manifest.py

index fd1e9cc59ca8386436d5e8029f7a5b46cbe81a13..ffca3415f0b5f0f427fb007198b052b860aa9762 100644 (file)
@@ -105,7 +105,7 @@ def get_timestamp_for_locale(path):
         dt = get_dt_from_hg(path)
 
     if dt is None:
-        dt = datetime.datetime.utcnow()
+        return os.environ['MOZ_BUILD_DATE']
 
     dt = dt.replace(microsecond=0)
     return dt.strftime("%Y%m%d%H%M%S")