From 33d0c3d6542f9b2bd201460f22f7e663536984b1 Mon Sep 17 00:00:00 2001 From: Antoine Belvire Date: Sat, 12 Oct 2019 14:24:40 +0200 Subject: [PATCH] Sort translations in desktop file Desktop file generation is non-deterministic - translation positions may vary across builds. This makes the build non-reproducible. The cause is the use of glob() which collects qm file paths in a random order, depending on the filesystem. To ensure the translations are written in a fixed order the list returned by glob() must be sorted. --- scripts/ts2appinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ts2appinfo.py b/scripts/ts2appinfo.py index 5fadd30e308..a9018a26c35 100644 --- a/scripts/ts2appinfo.py +++ b/scripts/ts2appinfo.py @@ -57,7 +57,7 @@ except AttributeError: app = QCoreApplication(argvb) -for qm in glob(sys.argv[1] + "/output/i18n/qgis_*.qm"): +for qm in sorted(glob(sys.argv[1] + "/output/i18n/qgis_*.qm")): translator = QTranslator() translator.load(qm)