From: Bruno Haible Date: Thu, 4 Aug 2022 20:24:20 +0000 (+0200) Subject: gnulib-tool.py: Fix typo. X-Git-Tag: v1.0~2171 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=c0c72120f0a9e1514d5a46d3588bf40bdbd20be4;p=gnulib.git gnulib-tool.py: Fix typo. * pygnulib/GLImport.py (GLImport.execute): Actually handle file removals. --- diff --git a/ChangeLog b/ChangeLog index c290fc0123..1abeb15271 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2022-08-04 Bruno Haible + gnulib-tool.py: Fix typo. + * pygnulib/GLImport.py (GLImport.execute): Actually handle file + removals. + gnulib-tool.py: Coding style: Revisit line breaks. * gnulib-tool.py: Avoid line breaks at arbitrary points inside expressions. Use line breaks to clarify [... for ...] iterations. diff --git a/pygnulib/GLImport.py b/pygnulib/GLImport.py index 1d014d68d2..9dff29a6b3 100644 --- a/pygnulib/GLImport.py +++ b/pygnulib/GLImport.py @@ -1053,7 +1053,7 @@ AC_DEFUN([%s_FILE_LIST], [\n''' % macro_prefix # They will be removed and added to filetable['removed'] list. pairs = [ f for f in filetable['old'] - if f not in filetable['old'] ] + if f not in filetable['new'] ] pairs = sorted(set(pairs), key=lambda t: tuple(t[0].lower())) files = sorted(set(pair[0] for pair in pairs)) for file in files: