From: Bruno Haible Date: Wed, 17 Apr 2024 22:44:19 +0000 (+0200) Subject: gnulib-tool.py: Use same warning style as gnulib-tool.sh. X-Git-Tag: v1.0~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cdd0b362f409c159c3b73de2cb8de6e7d54e21b;p=thirdparty%2Fgnulib.git 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: ". --- diff --git a/ChangeLog b/ChangeLog index faabf767a0..646653ffe5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-04-17 Bruno Haible + + 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 stdio, utime-h: Fix more linkage errors when using C++. diff --git a/pygnulib/GLTestDir.py b/pygnulib/GLTestDir.py index b668629f4d..38427e402e 100644 --- a/pygnulib/GLTestDir.py +++ b/pygnulib/GLTestDir.py @@ -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.