From afd9fbe4cc59c8b9b45859c7271f5cb12891453e Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Fri, 29 Mar 2024 20:15:24 -0700 Subject: [PATCH] gnulib-tool.py: Fix reading of 'gl_VC_FILES' in gnulib-cache.m4. * pygnulib/GLImport.py (GLImport.__init__): Check for an empty string explicitly in conditional so False is not ignored. --- ChangeLog | 6 ++++++ pygnulib/GLImport.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index eab98607a2..6d31a954c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-03-29 Collin Funk + + gnulib-tool.py: Fix reading of 'gl_VC_FILES' in gnulib-cache.m4. + * pygnulib/GLImport.py (GLImport.__init__): Check for an empty string + explicitly in conditional so False is not ignored. + 2024-03-29 Paul Eggert intprops: pacify GCC < 10 -Wsign-compare diff --git a/pygnulib/GLImport.py b/pygnulib/GLImport.py index eb382cadac..81298eeca1 100644 --- a/pygnulib/GLImport.py +++ b/pygnulib/GLImport.py @@ -202,7 +202,7 @@ class GLImport(object): self.cache.setPoDomain(cleaner(tempdict['gl_PO_DOMAIN'])) if tempdict['gl_WITNESS_C_MACRO']: self.cache.setWitnessCMacro(cleaner(tempdict['gl_WITNESS_C_MACRO'])) - if tempdict['gl_VC_FILES']: + if tempdict['gl_VC_FILES'] != '': self.cache.setVCFiles(cleaner(tempdict['gl_VC_FILES'])) # Get cached filelist from gnulib-comp.m4. -- 2.44.0