* 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 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.
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))
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.