]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
gnulib-tool.py: Print warnings just like gnulib-tool.sh.
authorBruno Haible <bruno@clisp.org>
Fri, 12 Apr 2024 13:26:45 +0000 (15:26 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 12 Apr 2024 13:26:45 +0000 (15:26 +0200)
* pygnulib/main.py (main): When printing a warning, print just
"gnulib-tool" instead of the absolute file name.

ChangeLog
pygnulib/main.py

index 441012e5a79503a149220dcee50d31421e9b581a..a75c13ad090cd5089fafe9d70e54be816572f19a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-04-12  Bruno Haible  <bruno@clisp.org>
+
+       gnulib-tool.py: Print warnings just like gnulib-tool.sh.
+       * pygnulib/main.py (main): When printing a warning, print just
+       "gnulib-tool" instead of the absolute file name.
+
 2024-04-12  Bruno Haible  <bruno@clisp.org>
 
        gnulib-tool.sh: Accept conditional dependencies with tests.
index 5fec0ccc4a6f319108d9d0f1268d46dc79d5bc7e..9fadd4a4ea49cc09e5fd4d829525bdcbde410791 100644 (file)
@@ -709,7 +709,7 @@ def main() -> None:
         sys.stderr.write(message)
         sys.exit(1)
     if cmdargs.pobase == None and cmdargs.podomain != None:
-        message = '%s: warning: --po-domain has no effect without a --po-base option\n' % constants.APP['name']
+        message = 'gnulib-tool: warning: --po-domain has no effect without a --po-base option\n'
         sys.stderr.write(message)
     if mode != None and 'test' in mode and cmdargs.gnu_make:
         message = '%s: --gnu-make not supported when including tests\n' % constants.APP['name']
@@ -900,7 +900,7 @@ def main() -> None:
                         if module.getFiles():
                             print(name)
             else:
-                message = '%s: warning: file %s does not exist\n' % (constants.APP['name'], filename)
+                message = 'gnulib-tool: warning: file %s does not exist\n' % filename
                 sys.stderr.write(message)
 
     elif mode in ['import', 'add-import', 'remove-import', 'update']: