From 702d7c951eefe2d48bb8eb587ca4b1a0b26a616c Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Mon, 18 Mar 2024 20:01:50 -0700 Subject: [PATCH 4/4] gnulib-tool.py: Make sure temporary files are removed. * pygnulib/GLImport.py (GLImport.execute): Fix nesting of statement so that both temporary files are removed. --- ChangeLog | 6 ++++++ pygnulib/GLImport.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fada1a3be6..58d7528e92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-03-18 Collin Funk + + gnulib-tool.py: Make sure temporary files are removed. + * pygnulib/GLImport.py (GLImport.execute): Fix nesting of statement so + that both temporary files are removed. + 2024-03-18 Collin Funk gnulib-tool.py: Follow gnulib-tool changes, part 67. diff --git a/pygnulib/GLImport.py b/pygnulib/GLImport.py index 84bd01ecf3..0c268f6b47 100644 --- a/pygnulib/GLImport.py +++ b/pygnulib/GLImport.py @@ -1206,8 +1206,8 @@ AC_DEFUN([%s_FILE_LIST], [\n''' % macro_prefix else: # if self.config['dryrun']: print('Create %s' % filename) filetable['added'] += [filename] - if isfile(tmpfile): - os.remove(tmpfile) + if isfile(tmpfile): + os.remove(tmpfile) # Create po makefile parameterization, part 1. basename = joinpath(pobase, 'Makevars') -- 2.44.0