summaryrefslogtreecommitdiff
path: root/pygnulib/GLModuleSystem.py
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-08-07 13:46:15 +0200
committerBruno Haible <bruno@clisp.org>2022-08-07 23:04:11 +0200
commit5c087011efa2817a7e857f69a1cdd22c21a5053d (patch)
tree552d99091fbdeda40756c360ae70eac81da9f7bf /pygnulib/GLModuleSystem.py
parent9d722ddced2e46a06255be8eb24a54015f611af7 (diff)
downloadgnulib-5c087011efa2817a7e857f69a1cdd22c21a5053d.tar.gz
gnulib-tool.py: Fix some regex uses.
* pygnulib/GLModuleSystem.py (GLModuleTable.transitive_closure): Match the regex against all lines of the snippet, not only the first line. * pygnulib/GLEmiter.py (GLEmiter.autoconfSnippet): Likewise.
Diffstat (limited to 'pygnulib/GLModuleSystem.py')
-rw-r--r--pygnulib/GLModuleSystem.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygnulib/GLModuleSystem.py b/pygnulib/GLModuleSystem.py
index e1b62ec56c..75316515b8 100644
--- a/pygnulib/GLModuleSystem.py
+++ b/pygnulib/GLModuleSystem.py
@@ -1041,7 +1041,7 @@ class GLModuleTable(object):
if self.config['conddeps']:
automake_snippet = \
module.getAutomakeSnippet_Conditional()
- pattern = re.compile('^if')
+ pattern = re.compile('^if', re.M)
if not pattern.findall(automake_snippet):
self.addUnconditional(module)
conditional = self.isConditional(module)