[PATCH] Sort translation files

Sort translation files when generating the .desktop file to output
reproducible results.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848633

Reviewed-by: James Cameron <quozl@laptop.org>
master
Eduard Sanou 7 years ago committed by Ignacio Rodríguez
parent 290202d385
commit 05a18a2dc6
No known key found for this signature in database
GPG Key ID: 56C1623CF182C6B0

@ -387,8 +387,8 @@ class Installer(Packager):
if info.has_option('Activity', 'summary'):
cp.set(section, 'Comment', info.get('Activity', 'summary'))
for path in glob(os.path.join(activity_path, 'locale',
'*', 'activity.linfo')):
for path in sorted(glob(os.path.join(activity_path, 'locale',
'*', 'activity.linfo'))):
locale = path.split(os.path.sep)[-2]
info = ConfigParser()
info.read(path)

Loading…
Cancel
Save