locale/pick-complete-translations.py: use stable sort order for MANIFEST.in

This commit is contained in:
Hans-Christoph Steiner 2025-03-25 12:05:06 +01:00
parent 0c867f908f
commit eef237de85
No known key found for this signature in database
GPG key ID: 3E177817BA1B9BFA

View file

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