+2024-03-28 Collin Funk <collin.funk1@gmail.com>
+
+ gnulib-tool.py: Fix missing 'gnulib-cache.m4' in EXTRA_DIST.
+ * pygnulib/GLMakefileTable.py (GLMakefileTable.parent): Fix the loop
+ condition so that it matches gnulib-tool.sh.
+
2024-03-28 Collin Funk <collin.funk1@gmail.com>
gnulib-tool.py: Fix whitespace in gnulib-comp.m4.
# Define global constants
#===============================================================================
TESTS = constants.TESTS
+isfile = os.path.isfile
joinpath = constants.joinpath
dir1 = '%s%s' % (m4base, os.path.sep)
dir2 = ''
while (dir1
- and (joinpath(self.config['destdir'], dir1, 'Makefile.am')
- or joinpath(dir1, 'Makefile.am') == joinpath(sourcebase, source_makefile_am)
- or (gentests and joinpath(dir1, 'Makefile.am') == joinpath(testsbase, tests_makefile_am)))):
+ and not (isfile(joinpath(self.config['destdir'], dir1, 'Makefile.am'))
+ or joinpath(dir1, 'Makefile.am') == joinpath(sourcebase, source_makefile_am)
+ or (gentests and joinpath(dir1, 'Makefile.am') == joinpath(testsbase, tests_makefile_am)))):
dir2 = joinpath(os.path.basename(dir1), dir2)
dir1 = os.path.dirname(dir1)
self.editor(dir1, 'EXTRA_DIST', joinpath(dir2, 'gnulib-cache.m4'))