+2024-04-12 Bruno Haible <bruno@clisp.org>
+
+ gnulib-tool.py: Accept conditional dependencies with tests.
+ * pygnulib/GLImport.py (GLImport.__init__): Don't reject the combination
+ of gl_CONDITIONAL_DEPENDENCIES and gl_WITH_TESTS.
+ * pygnulib/GLError.py (GLError.__repr__): Remove error 10.
+ * pygnulib/main.py (main_with_exception_handling): Likewise.
+
2024-04-12 Bruno Haible <bruno@clisp.org>
gnulib-tool.py: Fix handling of --with-obsolete.
7: missing docbase argument
8: missing testsbase argument
9: missing libname argument
- 10: conddeps are not supported with inctests
11: incompatible licenses on modules: <modules>
12: cannot process empty filelist
13: cannot create the given directory: <directory>
message = "missing testsbase argument; cache file doesn't contain it, so you might have to set this argument"
elif errno == 9:
message = "missing libname argument; cache file doesn't contain it, so you might have to set this argument"
- elif errno == 10:
- message = 'conddeps are not supported with inctests'
elif errno == 11:
message = 'incompatible licenses on modules: %s' % repr(errinfo)
elif errno == 12:
elif self.mode == MODES['update']:
modules = self.cache.getModules()
- # If user tries to apply conddeps and TESTS['tests'] together.
- if self.config.checkInclTestCategory(TESTS['tests']) and self.config['conddeps']:
- raise GLError(10, None)
-
# Update configuration dictionary.
self.config.update(self.cache)
for key in config.keys():
message += 'missing --tests-base option'
elif errno == 9:
message += 'missing --lib option'
- elif errno == 10:
- message = 'gnulib-tool: option --conditional-dependencies is not supported with --with-tests'
elif errno == 11:
incompatibilities = ''
message += 'incompatible license on modules:%s' % constants.NL