Predictable POT file ordering

Every time an activity maintainer uses the `python setup.py genpot`
command the resulting po/Activity.pot file has changes caused by random
ordering of filesystem inodes.

This makes the output unpredictable.

Sort the list of source files.
This commit is contained in:
James Cameron 2017-06-01 08:09:53 +10:00
parent c26c902dc7
commit 7d5abe2684

View File

@ -583,6 +583,7 @@ def cmd_genpot(config, options):
file_path = os.path.relpath(os.path.join(root, file_name),
config.source_dir)
python_files.append(file_path)
python_files.sort()
# First write out a stub .pot file containing just the translated
# activity name, then have xgettext merge the rest of the