* pygnulib/GLImport.py (GLImport.execute): Only use PO files when
determining the output for po/LINGUAS.
+2024-03-31 Collin Funk <collin.funk1@gmail.com>
+
+ gnulib-tool.py: Fix output of 'po/LINGUAS'.
+ * pygnulib/GLImport.py (GLImport.execute): Only use PO files when
+ determining the output for po/LINGUAS.
+
2024-03-31 Collin Funk <collin.funk1@gmail.com>
gnulib-tool.py: Fix sorting of modules when --local-dir is used.
tmpfile = self.assistant.tmpfilename(basename)
data = '# Set of available languages.\n'
files = [ constants.subend('.po', '', file)
- for file in os.listdir(joinpath(destdir, pobase)) ]
+ 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)