[colobot] 01/02: Add patch to find the available level translations with a sorted os.listdir, to avoid picking unreproducibilty from the directory files order

Didier Raboud odyx at moszumanska.debian.org
Sat Dec 17 13:13:03 UTC 2016


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository colobot.

commit b3038142f5442ecab8a7f27ae3b08557352cb988
Author: Didier Raboud <odyx at debian.org>
Date:   Sat Dec 17 14:09:53 2016 +0100

    Add patch to find the available level translations with a sorted os.listdir, to avoid picking unreproducibilty from the directory files order
---
 debian/patches/build_levelfiles_reproducibly.patch | 16 ++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 17 insertions(+)

diff --git a/debian/patches/build_levelfiles_reproducibly.patch b/debian/patches/build_levelfiles_reproducibly.patch
new file mode 100644
index 0000000..6105ca7
--- /dev/null
+++ b/debian/patches/build_levelfiles_reproducibly.patch
@@ -0,0 +1,16 @@
+Description: In the i18n-tools, find the available translations with a sorted
+ os.listdir, to avoid picking unreproducibilty from the directory files'
+ order.
+Author: Didier Raboud <odyx at debian.org>
+Last-Update: 2016-12-17
+--- a/data/i18n-tools/scripts/common.py
++++ b/data/i18n-tools/scripts/common.py
+@@ -147,7 +147,7 @@
+ def find_translation_file_names(po_dir):
+     pot_file_name = os.path.join(po_dir, 'translations.pot') # default
+     po_file_names = []
+-    for file_name in os.listdir(po_dir):
++    for file_name in sorted(os.listdir(po_dir)):
+         if file_name.endswith('.pot'):
+             pot_file_name = os.path.join(po_dir, file_name)
+         elif file_name.endswith('.po'):
diff --git a/debian/patches/series b/debian/patches/series
index ac164ec..063fba0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 find-music-in-root-for-multi-source.patch
 oggenc-reproducibly.patch
 doxygen-reproducibly.patch
+build_levelfiles_reproducibly.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list