add patch to sort pofiles
Sascha Steinbiss
4 years ago
|
0 |
python-babelgladeextractor (0.5.1-2) unstable; urgency=medium
|
|
1 |
|
|
2 |
* Add patch to provide pofiles in order.
|
|
3 |
This is required to obtain deterministic .desktop and .appdata.xml
|
|
4 |
files, which makes builds of packages depending on this reproducible.
|
|
5 |
|
|
6 |
-- Sascha Steinbiss <satta@debian.org> Sun, 24 Nov 2019 11:50:34 +0100
|
|
7 |
|
0 | 8 |
python-babelgladeextractor (0.5.1-1) unstable; urgency=medium
|
1 | 9 |
|
2 | 10 |
* Initial release. (Closes: #944328)
|
|
0 |
sort-translations.patch
|
|
0 |
Description: provide files in order
|
|
1 |
This is meant to help make builds reproducible.
|
|
2 |
Author: Sascha Steinbiss <satta@debian.org>
|
|
3 |
Last-Update: 2019-11-24
|
|
4 |
--- a/babelglade/translate.py
|
|
5 |
+++ b/babelglade/translate.py
|
|
6 |
@@ -80,9 +80,9 @@
|
|
7 |
def get_catalogs(localedir):
|
|
8 |
# glob in Python 3.5 takes ** syntax
|
|
9 |
# pofiles = glob.glob(os.path.join(localedir, '**.po', recursive=True))
|
|
10 |
- pofiles = [os.path.join(dirpath, f)
|
|
11 |
+ pofiles = sorted([os.path.join(dirpath, f)
|
|
12 |
for dirpath, dirnames, files in os.walk(localedir)
|
|
13 |
- for f in files if f.endswith('.po')]
|
|
14 |
+ for f in files if f.endswith('.po')])
|
|
15 |
logging.debug('Loading %r', pofiles)
|
|
16 |
catalogs = {}
|
|
17 |
|