Running gnulib-tool.py with option --testdir, I get an error: Traceback (most recent call last): File "/media/develdata/devel/GNULIB/gnulib-git/./gnulib-tool.py", line 948, in <module> main() File "/media/develdata/devel/GNULIB/gnulib-git/./gnulib-tool.py", line 684, in main testdir.execute() File "/media/develdata/devel/GNULIB/gnulib-git/pygnulib/GLTestDir.py", line 358, in execute emit, uses_subdirs = self.emiter.lib_Makefile_am(destfile, modules, File "/media/develdata/devel/GNULIB/gnulib-git/pygnulib/GLEmiter.py", line 667, in lib_Makefile_am module_indicator_prefix = self.config.getModuleIndicatorPrefix() File "/media/develdata/devel/GNULIB/gnulib-git/pygnulib/GLConfig.py", line 830, in getModuleIndicatorPrefix return(getIncludeGuardPrefix(self)) NameError: name 'getIncludeGuardPrefix' is not defined
This patch fixes it. 2022-07-29 Bruno Haible <br...@clisp.org> gnulib-tool.py: Fix error (regression 2021-04-11). * pygnulib/GLConfig.py (GLConfig.getModuleIndicatorPrefix): Fix code. diff --git a/pygnulib/GLConfig.py b/pygnulib/GLConfig.py index ddabd001dd..fe219a36f6 100644 --- a/pygnulib/GLConfig.py +++ b/pygnulib/GLConfig.py @@ -827,7 +827,7 @@ class GLConfig(object): def getModuleIndicatorPrefix(self): '''Return module_indicator_prefix to use inside GLEmiter class.''' - return(getIncludeGuardPrefix(self)) + return(self.getIncludeGuardPrefix()) # Define macro_prefix methods.