]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Use same warning style as gnulib-tool.sh.
authorBruno Haible <bruno@clisp.org>
Wed, 17 Apr 2024 22:44:19 +0000 (00:44 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 17 Apr 2024 22:44:19 +0000 (00:44 +0200)
* pygnulib/GLTestDir.py (GLTestDir.execute): Prefix the
"incompatible license" message with "gnulib-tool: warning: ".

ChangeLog
pygnulib/GLTestDir.py

index faabf767a0b2784c35337899fc97063207bd238f..646653ffe54360b190424cbbefee04fd52059fbb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-04-17  Bruno Haible  <bruno@clisp.org>
+
+       gnulib-tool.py: Use same warning style as gnulib-tool.sh.
+       * pygnulib/GLTestDir.py (GLTestDir.execute): Prefix the
+       "incompatible license" message with "gnulib-tool: warning: ".
+
 2024-04-17  Bruno Haible  <bruno@clisp.org>
 
        stdio, utime-h: Fix more linkage errors when using C++.
index b668629f4dd66d6c2c4965d9f4ea3337123fddce..38427e402ed15200ef01187364db3db0f70993c6 100644 (file)
@@ -242,8 +242,8 @@ class GLTestDir:
                             if license not in ['LGPLv2+']:
                                 incompatible = True
                         if incompatible:
-                            errormsg = 'module %s depends on a module with an incompatible license: %s\n' % (requested_module, module)
-                            sys.stderr.write(errormsg)
+                            warningmsg = 'module %s depends on a module with an incompatible license: %s' % (requested_module, module)
+                            sys.stderr.write('gnulib-tool: warning: %s\n' % warningmsg)
         self.config.setInclTestCategory(TESTS['tests'], saved_inctests)
 
         # Determine final module list.