]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Don't default to 'build-aux' for --auxdir.
authorCollin Funk <collin.funk1@gmail.com>
Tue, 2 Apr 2024 02:13:16 +0000 (19:13 -0700)
committerBruno Haible <bruno@clisp.org>
Tue, 2 Apr 2024 12:13:20 +0000 (14:13 +0200)
* pygnulib/GLConfig.py (GLConfig.__getitem__): Don't map '' to
'build-aux' for the 'auxdir' key.
* pygnulib/GLImport.py (GLImport.__init__): Change conditional to use an
empty string instead of None since this is returned when --auxdir is not
used.

ChangeLog
pygnulib/GLConfig.py
pygnulib/GLImport.py

index 5c51c941663046b56bdcf68b4d5fdad2abe6122f..e45ecef1abe4fb0f24961282b140792538a207a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2024-04-02  Collin Funk  <collin.funk1@gmail.com>
+
+       gnulib-tool.py: Don't default to 'build-aux' for --auxdir.
+       * pygnulib/GLConfig.py (GLConfig.__getitem__): Don't map '' to
+       'build-aux' for the 'auxdir' key.
+       * pygnulib/GLImport.py (GLImport.__init__): Change conditional to use an
+       empty string instead of None since this is returned when --auxdir is not
+       used.
+
 2024-04-02  Bruno Haible  <bruno@clisp.org>
 
        gnulib-tool: Remove unused variables.
index 63d1d06b1c55f551f3956f516b2879af8f9687ed..716a2cf4d13d8d7ffaaa87e82ed814a807e07982 100644 (file)
@@ -251,10 +251,6 @@ class GLConfig(object):
     def __getitem__(self, y: str) -> str | float | int | bool | CopyAction | list[str] | None:
         '''x.__getitem__(y) <==> x[y]'''
         if y in self.table:
-            if y == "auxdir":
-                if self.table['auxdir']:
-                    return self.table['auxdir']
-                return "build-aux"
             return self.table[y]
         else:  # if y not in self.table
             raise KeyError('GLConfig does not contain key: %s' % repr(y))
index 05ce82b7acc1cb7be55e051eabc344159274c847..ab740b05ca185012f7919540c9e62fe0c3d6b9ad 100644 (file)
@@ -100,7 +100,7 @@ class GLImport(object):
             self.cache.setAuxDir(joinpath(self.config['destdir'], result))
         pattern = re.compile(r'A[CM]_PROG_LIBTOOL', re.M)
         guessed_libtool = bool(pattern.findall(data))
-        if self.config['auxdir'] == None:
+        if self.config['auxdir'] == '':
             self.config.setAuxDir(self.cache['auxdir'])
 
         # Guess autoconf version.