+2024-04-11 Collin Funk <collin.funk1@gmail.com>
+
+ gnulib-tool.py: Fix sorting of the LINGUAS file.
+ * pygnulib/GLImport.py (GLImport.execute): Sort the list of locales
+ before writing them into the LINGUAS file.
+
2024-04-10 Bruno Haible <bruno@clisp.org>
gnulib-tool.sh: Handle .gitignore files that do not end in a newline.
if not self.config['dryrun']:
tmpfile = self.assistant.tmpfilename(basename)
data = '# Set of available languages.\n'
- files = [ constants.subend('.po', '', file)
- for file in os.listdir(joinpath(destdir, pobase))
- if file.endswith('.po') ]
+ files = sorted([ constants.subend('.po', '', file)
+ for file in os.listdir(joinpath(destdir, pobase))
+ if file.endswith('.po') ])
data += lines_to_multiline(files)
with codecs.open(tmpfile, 'wb', 'UTF-8') as file:
file.write(data)