]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Fix logic of --remove-import option.
authorBruno Haible <bruno@clisp.org>
Wed, 13 Nov 2024 01:36:11 +0000 (02:36 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 1 Dec 2024 06:55:20 +0000 (07:55 +0100)
Reported by Gavin Smith <gavinsmith0123@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-11/msg00101.html>.

* pygnulib/GLImport.py (GLImport.__init__): Compute the modules to keep
correctly.

ChangeLog
pygnulib/GLImport.py

index 81e8d875ed8c951397fe39c135ba010ef238dd7c..55504d69b6b8093d6bbb20d0f1ea1449ca3d625a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-11-12  Bruno Haible  <bruno@clisp.org>
+
+       gnulib-tool.py: Fix logic of --remove-import option.
+       Reported by Gavin Smith <gavinsmith0123@gmail.com> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2024-11/msg00101.html>.
+       * pygnulib/GLImport.py (GLImport.__init__): Compute the modules to keep
+       correctly.
+
 2024-11-11  Bruno Haible  <bruno@clisp.org>
 
        fts: Fix dependencies.
index b09ba9868c93174edd5a0a8b40ce6e7cce4223e5..649b91248823303ea7846d8d7508899049a46602 100644 (file)
@@ -235,7 +235,7 @@ class GLImport(object):
             elif self.mode == MODES['remove-import']:
                 modules = [ module
                             for module in old
-                            if module in new ]
+                            if not module in new ]
             elif self.mode == MODES['update']:
                 modules = self.cache.getModules()