From b7faa612cf7b8e035699c8e7e38dab0bab41c007 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 13 Apr 2024 00:53:05 +0200 Subject: [PATCH] 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. --- ChangeLog | 1 + pygnulib/GLConfig.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8a8451ef2e..db3c4591e2 100644 --- 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. diff --git a/pygnulib/GLConfig.py b/pygnulib/GLConfig.py index c9248453aa..4e1eeb1375 100644 --- a/pygnulib/GLConfig.py +++ b/pygnulib/GLConfig.py @@ -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', -- 2.39.5