]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
gnulib-tool.py: Fix output of 'po/LINGUAS'.
authorCollin Funk <collin.funk1@gmail.com>
Sun, 31 Mar 2024 05:38:48 +0000 (22:38 -0700)
committerBruno Haible <bruno@clisp.org>
Sun, 31 Mar 2024 12:15:14 +0000 (14:15 +0200)
* pygnulib/GLImport.py (GLImport.execute): Only use PO files when
determining the output for po/LINGUAS.

ChangeLog
pygnulib/GLImport.py

index ebd3dd3c68360005892cae2adcf091c66f1ec7b2..2f05098a08457ff1dfe4e2a5a8dc52a9d34a078b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
index c3a7597d0298a7c8187a54222119c9ecf8ca4891..1fc43bfdffeb974e7b8d5260ecfbc423deeef33a 100644 (file)
@@ -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)