]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Fix output in --dry-run mode.
authorBruno Haible <bruno@clisp.org>
Sat, 6 Aug 2022 21:10:14 +0000 (23:10 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 6 Aug 2022 21:10:14 +0000 (23:10 +0200)
* pygnulib/GLImport.py (GLImport._update_ignorelist_): In dry-run mode,
say "Update", not "Updating".

ChangeLog
pygnulib/GLImport.py

index 29da7a3a6ef8b41bf171972f974c8c21b9e9c885..e5af4e34c0285589717213cc8a971a04d140a474 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2022-08-06  Bruno Haible  <bruno@clisp.org>
 
+       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
index b06fc5b6036972dbc78b4984ea542967d11aa0bd..13418400af1bf539d496f5e97a56552d2f19fa42 100644 (file)
@@ -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']: