2022-08-07 Bruno Haible <bruno@clisp.org>
+ gnulib-tool.py: Rename a method.
+ * pygnulib/GLModuleSystem.py (GLModule.getAutoconfEarlySnippet): Renamed
+ from GLModule.getAutoconfSnippet_Early.
+ * pygnulib/GLImport.py: Update.
+ * pygnulib/GLTestDir.py: Likewise.
+
gnulib-tool.py: Fix section extraction from module descriptions.
The code with self.content.split(section)[-1]
was broken because it recognizes an indented section label.
emit += ' AC_REQUIRE([AM_PROG_CC_C_O])\n'
for module in moduletable['final']:
emit += ' # Code from module %s:\n' % str(module)
- snippet = module.getAutoconfSnippet_Early()
+ snippet = module.getAutoconfEarlySnippet()
lines = [ line
for line in snippet.split(constants.NL)
if line != '' ]
self.cache['dependencies'] = result
return self.cache['dependencies']
- def getAutoconfSnippet_Early(self):
- '''GLModule.getAutoconfSnippet_Early() -> str
+ def getAutoconfEarlySnippet(self):
+ '''GLModule.getAutoconfEarlySnippet() -> str
Return autoconf-early snippet.'''
return self.sections.get('configure.ac-early', '')
pass
# if str(module) not in ['gnumakefile', 'maintainer-makefile']
else:
- snippet = module.getAutoconfSnippet_Early()
+ snippet = module.getAutoconfEarlySnippet()
lines = [ line
for line in snippet.split('\n')
if line.strip() ]
else: # if not single_configure
solution = module.isNonTests()
if solution:
- snippet = module.getAutoconfSnippet_Early()
+ snippet = module.getAutoconfEarlySnippet()
lines = [ line
for line in snippet.split('\n')
if line.strip() ]