From: Bruno Haible Date: Wed, 13 Nov 2024 01:36:11 +0000 (+0100) Subject: gnulib-tool.py: Fix logic of --remove-import option. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=984b9a733af56b7ac760d3a960e4cfb8452f36be;p=gnulib.git gnulib-tool.py: Fix logic of --remove-import option. Reported by Gavin Smith in . * pygnulib/GLImport.py (GLImport.__init__): Compute the modules to keep correctly. --- diff --git a/ChangeLog b/ChangeLog index 81e8d875ed..55504d69b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2024-11-12 Bruno Haible + + gnulib-tool.py: Fix logic of --remove-import option. + Reported by Gavin Smith in + . + * pygnulib/GLImport.py (GLImport.__init__): Compute the modules to keep + correctly. + 2024-11-11 Bruno Haible fts: Fix dependencies. diff --git a/pygnulib/GLImport.py b/pygnulib/GLImport.py index b09ba9868c..649b912488 100644 --- a/pygnulib/GLImport.py +++ b/pygnulib/GLImport.py @@ -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()