From bf49ad6ce4a557b2585c8d2f11de856c99352840 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Wed, 21 Feb 2024 08:54:51 -0800 Subject: [PATCH] gnulib-tool.py: Fix undefined variable while emitting testdir. * pygnulib/GLTestDir.py (GLTestDir.execute): Fix undefined variable refrence caused by commit 01cd78f9d682ff75cc5ab1c2d21b911bdd9215b8. Restore the previous auxdir when finished writing the configure.ac file in the test directory. --- ChangeLog | 9 +++++++++ pygnulib/GLTestDir.py | 1 + 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9779a09ac6..e313032178 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2024-02-21 Collin Funk + + gnulib-tool.py: Fix undefined variable while emitting testdir. + * pygnulib/GLTestDir.py (GLTestDir.execute): Fix undefined + variable refrence caused by commit + 01cd78f9d682ff75cc5ab1c2d21b911bdd9215b8. + Restore the previous auxdir when finished writing the + configure.ac file in the test directory. + 2024-02-21 Bruno Haible *printf-posix: Disable support for the 'n' directive by default. diff --git a/pygnulib/GLTestDir.py b/pygnulib/GLTestDir.py index ae8537cff4..144798bd01 100644 --- a/pygnulib/GLTestDir.py +++ b/pygnulib/GLTestDir.py @@ -406,6 +406,7 @@ class GLTestDir(object): file.write(emit) # Viewed from the $testsbase subdirectory, $auxdir is different. emit = '' + saved_auxdir = auxdir auxdir = os.path.normpath(joinpath(relinverse(testsbase), auxdir)) self.config.setAuxDir(auxdir) # Create $testsbase/configure.ac. -- 2.39.5