>From 07d41642fbad4a36a7ece9ee33db6a4d641cb585 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 6 Aug 2022 23:10:14 +0200 Subject: [PATCH 03/19] gnulib-tool.py: Fix output in --dry-run mode. * pygnulib/GLImport.py (GLImport._update_ignorelist_): In dry-run mode, say "Update", not "Updating". --- ChangeLog | 4 ++++ pygnulib/GLImport.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 29da7a3a6e..e5af4e34c0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2022-08-06 Bruno Haible + gnulib-tool.py: Fix output in --dry-run mode. + * pygnulib/GLImport.py (GLImport._update_ignorelist_): In dry-run mode, + say "Update", not "Updating". + gnulib-tool.py: Finish implementing options --vc-files, --no-vc-files. * gnulib-tool.py (main): Accept options --vc-files, --no-vc-files. * pygnulib/GLImport.py (GLImport.__init__): Correct parsing of diff --git a/pygnulib/GLImport.py b/pygnulib/GLImport.py index b06fc5b603..13418400af 100644 --- a/pygnulib/GLImport.py +++ b/pygnulib/GLImport.py @@ -739,7 +739,7 @@ AC_DEFUN([%s_FILE_LIST], [\n''' % macro_prefix with codecs.open(srcpath, 'ab', 'UTF-8') as file: file.write(destdata) else: # if self.config['dryrun'] - print('Updating %s (backup in %s)' % (srcpath, backupname)) + print('Update %s (backup in %s)' % (srcpath, backupname)) else: # if not isfile(srcpath) if dirs_added: if not self.config['dryrun']: -- 2.34.1