From eef237de8546652105fbbbdfdf4b0b21c6f7edff Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 25 Mar 2025 12:05:06 +0100 Subject: [PATCH] locale/pick-complete-translations.py: use stable sort order for MANIFEST.in --- locale/pick-complete-translations.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/locale/pick-complete-translations.py b/locale/pick-complete-translations.py index 4366807a..686d0261 100755 --- a/locale/pick-complete-translations.py +++ b/locale/pick-complete-translations.py @@ -79,7 +79,13 @@ with open(manifest_file, 'a') as fp: if line: fp.write(line) +# first filter duplicates subprocess.run(['sort', '-u', '-o', manifest_file, manifest_file]) +# then use a stable sort order +subprocess.run( + ['sort', '--ignore-case', '--stable', '-o', manifest_file, manifest_file], + env={'LC_ALL': 'C'}, +) print('\tIf all else fails, try:') print('\tgit checkout -B merge_weblate weblate/master')