]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Don't print Python bools in gnulib-cache.m4.
authorCollin Funk <collin.funk1@gmail.com>
Sat, 23 Mar 2024 19:55:58 +0000 (12:55 -0700)
committerBruno Haible <bruno@clisp.org>
Sat, 23 Mar 2024 23:41:00 +0000 (00:41 +0100)
* pygnulib/GLImport.py (GLImport.gnulib_cache): Convert Python bools to
lowercase before printing.

ChangeLog
pygnulib/GLImport.py

index cbda2c57d0b830d9d50504e99f73fe397b3f485a..054c6c7fa40db9e15422b78714a336239a248545 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-03-23  Collin Funk  <collin.funk1@gmail.com>
+
+       gnulib-tool.py: Don't print Python bools in gnulib-cache.m4.
+       * pygnulib/GLImport.py (GLImport.gnulib_cache): Convert Python bools to
+       lowercase before printing.
+
 2024-03-23  Bruno Haible  <bruno@clisp.org>
 
        gnulib-tool.py: Don't unnecessarily run configure && make in testdirs.
index 8a0021d8dc7523b40edac647cb400809d10387f9..85ec0a61dbce44c1839c7f3b22ed38cb62e99a4e 100644 (file)
@@ -601,7 +601,8 @@ class GLImport(object):
         emit += 'gl_PO_DOMAIN([%s])\n' % podomain
         emit += 'gl_WITNESS_C_MACRO([%s])\n' % witness_c_macro
         if vc_files != None:
-            emit += 'gl_VC_FILES([%s])\n' % vc_files
+            # Convert Python bools to shell (True -> true).
+            emit += 'gl_VC_FILES([%s])\n' % str(vc_files).lower()
         return constants.nlconvert(emit)
 
     def gnulib_comp(self, filetable, gentests):