]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Implement --add-import --avoid correctly.
authorBruno Haible <bruno@clisp.org>
Fri, 12 Apr 2024 22:53:05 +0000 (00:53 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 12 Apr 2024 22:53:05 +0000 (00:53 +0200)
* pygnulib/GLConfig.py (GLConfig.update): Don't test for the unused key
'tests'.
(GLConfig.default): Likewise.
* pygnulib/GLImport.py (GLImport.__init__): Don't merge back those
values which were already considered by taking the union.

ChangeLog
pygnulib/GLConfig.py

index 8a8451ef2ebb77931fd99e0fe3a5002a4be527f7..db3c4591e27123c7f1a28f62630e7a94f6bfe9fc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
        gnulib-tool.py: Implement --add-import --avoid correctly.
        * pygnulib/GLConfig.py (GLConfig.update): Don't test for the unused key
        'tests'.
+       (GLConfig.default): Likewise.
        * pygnulib/GLImport.py (GLImport.__init__): Don't merge back those
        values which were already considered by taking the union.
 
index c9248453aa8c57525cac52014e996ef3a496bfd4..4e1eeb137538e9bf979ee813d845ef9519fede7e 100644 (file)
@@ -321,7 +321,7 @@ class GLConfig:
                 return 2.64
             elif key == 'verbosity':
                 return 0
-            elif key in ['localpath', 'modules', 'avoids', 'tests',
+            elif key in ['localpath', 'modules', 'avoids',
                          'incl_test_categories', 'excl_test_categories']:
                 return []
             elif key in ['incobsolete', 'gnu_make',