From 7d5abe26844fedc0b17b6f29053a4cc26c91509b Mon Sep 17 00:00:00 2001 From: James Cameron Date: Thu, 1 Jun 2017 08:09:53 +1000 Subject: [PATCH] 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. --- src/sugar3/activity/bundlebuilder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sugar3/activity/bundlebuilder.py b/src/sugar3/activity/bundlebuilder.py index 72d0046c..a8f9fb36 100644 --- a/src/sugar3/activity/bundlebuilder.py +++ b/src/sugar3/activity/bundlebuilder.py @@ -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