File: sort-translations.patch

package info (click to toggle)
gnome-keysign 1.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 904 kB
  • sloc: python: 4,849; xml: 106; makefile: 28
file content (18 lines) | stat: -rw-r--r-- 653 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: provide files in order
 This is meant to help make the build reproducible.
Author: Sascha Steinbiss <satta@debian.org>
Last-Update: 2019-02-01
--- a/setup.py
+++ b/setup.py
@@ -107,9 +107,9 @@
 
     # 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 = {}