[gnome-keysign: 1/9] provide pofiles in order
- From: Tobias Mueller <tobiasmue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keysign: 1/9] provide pofiles in order
- Date: Thu, 14 Feb 2019 15:55:09 +0000 (UTC)
commit fffeaa0a2831bc308dd4e4dcb3daf057ca99dfb5
Author: Sascha Steinbiss <satta debian org>
Date: Sun Feb 3 18:58:29 2019 +0100
provide pofiles in order
This is required to make the build reproducible since os.walk()
delivers entries in non-specified order.
setup.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/setup.py b/setup.py
index d597078..91d1763 100644
--- a/setup.py
+++ b/setup.py
@@ -107,9 +107,9 @@ def get_catalogs(localedir):
# glob in Python 3.5 takes ** syntax
# pofiles = glob.glob(os.path.join(localedir, '**.po', recursive=True))
- pofiles = [os.path.join(dirpath, f)
+ pofiles = sorted([os.path.join(dirpath, f)
for dirpath, dirnames, files in os.walk(localedir)
- for f in files if f.endswith('.po')]
+ for f in files if f.endswith('.po')])
logging.debug('Loading %r', pofiles)
catalogs = {}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]