]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Fix undefined variable access.
authorCollin Funk <collin.funk1@gmail.com>
Tue, 27 Feb 2024 00:13:46 +0000 (16:13 -0800)
committerBruno Haible <bruno@clisp.org>
Tue, 27 Feb 2024 02:09:11 +0000 (03:09 +0100)
* pygnulib/main.py (main): Don't use gnu_make before it is defined.

ChangeLog
pygnulib/main.py

index af84986424215738146b0586f32250643c5f8c01..4553fd5ae50f4d71fba55f884fd90ba0d4f72b79 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-02-26  Collin Funk  <collin.funk1@gmail.com>
+
+       gnulib-tool.py: Fix undefined variable access.
+       * pygnulib/main.py (main): Don't use gnu_make before it is defined.
+
 2024-02-26  Bruno Haible  <bruno@clisp.org>
 
        gnulib-tool.py: Reorganize code.
index 3d615ddbacf72b478ee06854d4b89b07eecfce24..cfa59c656250f7c05b1aa001eb6659e4ca2382c1 100644 (file)
@@ -605,7 +605,7 @@ def main():
     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']
         sys.stderr.write(message)
-    if mode != None and 'test' in mode and gnu_make:
+    if mode != None and 'test' in mode and cmdargs.gnu_make:
         message = '%s: --gnu-make not supported when including tests\n' % constants.APP['name']
         sys.stderr.write(message)
         sys.exit(1)