[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>
This commit is contained in:
Eduard Sanou 2017-01-02 02:24:03 -03:00 committed by Ignacio Rodríguez
parent 290202d385
commit 05a18a2dc6
No known key found for this signature in database
GPG Key ID: 56C1623CF182C6B0

View File

@ -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)