summaryrefslogtreecommitdiff
path: root/pygnulib/GLImport.py
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-08-04 19:10:27 +0200
committerBruno Haible <bruno@clisp.org>2022-08-04 19:10:27 +0200
commit895f7af02c482e218745550c87e77d21d5aaaa25 (patch)
tree6b0bebd00a08e9b2b7562c9124033abb57dd8a59 /pygnulib/GLImport.py
parentaf4eb877e856092bb2963661675f301806cf67c7 (diff)
downloadgnulib-895f7af02c482e218745550c87e77d21d5aaaa25.tar.gz
gnulib-tool.py: Simplify boolean setters.
* pygnulib/GLConfig.py (setLibtool): New method, replaces enableLibtool and disableLibtool. (setCondDeps): New method, replaces enableCondDeps and disableCondDeps. (setVCFiles): New method, replaces enableVCFiles and disableVCFiles. (setSymbolic): New method, replaces enableSymbolic and disableSymbolic. (setLSymbolic): New method, replaces enableLSymbolic and disableLSymbolic. (setLibtests): New method, replaces enableLibtests and disableLibtests. (setSingleConfigure): New method, replaces enableSingleConfigure and disableSingleConfigure. (setDryRun): New method, replaces enableDryRun and disableDryRun. (setErrors): New method, replaces enableErrors and disableErrors. (__init__): Update. * pygnulib/GLImport.py: Likewise. * pygnulib/GLTestDir.py: Likewise.
Diffstat (limited to 'pygnulib/GLImport.py')
-rw-r--r--pygnulib/GLImport.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pygnulib/GLImport.py b/pygnulib/GLImport.py
index ea41e91cbd..68965d6841 100644
--- a/pygnulib/GLImport.py
+++ b/pygnulib/GLImport.py
@@ -140,13 +140,13 @@ class GLImport(object):
keys.append('gl_LGPL')
self.cache.setLGPL(True)
if 'gl_LIBTOOL' in data:
- self.cache.enableLibtool()
+ self.cache.setLibtool(True)
data = data.replace('gl_LIBTOOL', '')
if 'gl_CONDITIONAL_DEPENDENCIES' in data:
- self.cache.enableCondDeps()
+ self.cache.setCondDeps(True)
data = data.replace('gl_CONDITIONAL_DEPENDENCIES', '')
if 'gl_VC_FILES' in data:
- self.cache.enableVCFiles()
+ self.cache.setVCFiles(True)
data = data.replace('gl_VC_FILES', '')
if 'gl_WITH_TESTS' in data:
self.cache.enableInclTestCategory(TESTS['tests'])
@@ -825,7 +825,7 @@ AC_DEFUN([%s_FILE_LIST], [\n''' % macro_prefix
libtests = True
break
if libtests:
- self.config.enableLibtests()
+ self.config.setLibtests(True)
# Add dummy package if it is needed.
main_modules = self.moduletable.add_dummy(main_modules)