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, 9 May 2023 21:32:15 +0000 (22:32 +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 05adaa4bd16e59e3dcfefbe142f31a0ff8db196e..24b429ba73228456e877224a56562d8c62afe5ab 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")