]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
gnulib-tool.py: Fix extra arguments to function call.
authorCollin Funk <collin.funk1@gmail.com>
Sat, 13 Apr 2024 17:09:17 +0000 (10:09 -0700)
committerBruno Haible <bruno@clisp.org>
Sat, 13 Apr 2024 18:02:06 +0000 (20:02 +0200)
* pygnulib/GLImport.py (GLImport.execute): Add the missing joinpath call
on two file name components before calling isfile().

ChangeLog
pygnulib/GLImport.py

index a43b5cce15617c284cb5a4865f2c252e1cc8bed5..4a5594c5cd0fa7843954b58c2bc56ac1cc617948 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-04-13  Collin Funk  <collin.funk1@gmail.com>
+
+       gnulib-tool.py: Fix extra arguments to function call.
+       * pygnulib/GLImport.py (GLImport.execute): Add the missing joinpath call
+       on two file name components before calling isfile().
+
 2024-04-13  Bruno Haible  <bruno@clisp.org>
 
        bootstrap: Fix --help messages.
index d44ceedcecaf1f13a7e440af74bd440e21f71d3e..eadf45828d98c6093e3fba15911de61ca108d80e 100644 (file)
@@ -1230,9 +1230,9 @@ AC_DEFUN([%s_FILE_LIST], [\n''' % macro_prefix
                     os.remove(tmpfile)
             else:  # if not self.config['dryrun']
                 backupname = '%s~' % basename
-                if isfile(destdir, basename):
+                if isfile(joinpath(destdir, basename)):
                     print('Update %s (backup in %s)' % (basename, backupname))
-                else:  # if not isfile(destdir, basename)
+                else:  # if not isfile(joinpath(destdir, basename))
                     print('Create %s' % basename)
 
         # Create m4/gnulib-cache.m4.