SHA256
1
0
forked from pool/qgis
qgis/qgis-3.8.3-reproducible.patch
Martin Pluskal 11a46e913b Accepting request 738084 from home:1Antoine1:branches:Application:Geo
- Add qgis-3.8.3-reproducible.patch: Sort desktop file content to
  get a more reproducible build.
- Fix unowned directory issues.
- Stop disabling post-build-checks.

OBS-URL: https://build.opensuse.org/request/show/738084
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/qgis?expand=0&rev=272
2019-10-14 07:15:15 +00:00

28 lines
824 B
Diff

From 1719c04f014cb47284be50b335e9835d687c7dff Mon Sep 17 00:00:00 2001
From: Antoine Belvire <antoine.belvire@opensuse.org>
Date: Sat, 12 Oct 2019 11:00:10 +0200
Subject: [PATCH] Sort translations in desktop file
Randomness is introduced by usage of Python's glob. Let's sort the result to
get a more reproducible build.
---
scripts/ts2appinfo.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/ts2appinfo.py b/scripts/ts2appinfo.py
index 5fadd30e30..a9018a26c3 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)
--
2.23.0