From 9e1af292dce08bfca092950e0e0d829398c6417d Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Mon, 18 Mar 2024 20:01:50 -0700 Subject: [PATCH] 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 18ecaddc0f..ad60e2895c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-03-19 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-19 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.39.5