From: Collin Funk Date: Sun, 31 Mar 2024 05:38:48 +0000 (-0700) Subject: gnulib-tool.py: Fix output of 'po/LINGUAS'. X-Git-Tag: v1.0~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b99fb118348d72d2c37f7090979169f5b82e77d;p=thirdparty%2Fgnulib.git gnulib-tool.py: Fix output of 'po/LINGUAS'. * pygnulib/GLImport.py (GLImport.execute): Only use PO files when determining the output for po/LINGUAS. --- diff --git a/ChangeLog b/ChangeLog index ebd3dd3c68..2f05098a08 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-03-31 Collin Funk + + 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 gnulib-tool.py: Fix sorting of modules when --local-dir is used. diff --git a/pygnulib/GLImport.py b/pygnulib/GLImport.py index c3a7597d02..1fc43bfdff 100644 --- a/pygnulib/GLImport.py +++ b/pygnulib/GLImport.py @@ -1241,7 +1241,8 @@ AC_DEFUN([%s_FILE_LIST], [\n''' % macro_prefix 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)