From: Collin Funk Date: Sat, 23 Mar 2024 19:55:58 +0000 (-0700) Subject: gnulib-tool.py: Don't print Python bools in gnulib-cache.m4. X-Git-Tag: v1.0~242 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ab0c51499654e102d6894d25d57ff676a7bf342e;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index cbda2c57d0..054c6c7fa4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-03-23 Collin Funk + + 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 gnulib-tool.py: Don't unnecessarily run configure && make in testdirs. diff --git a/pygnulib/GLImport.py b/pygnulib/GLImport.py index 8a0021d8dc..85ec0a61db 100644 --- a/pygnulib/GLImport.py +++ b/pygnulib/GLImport.py @@ -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):