summaryrefslogtreecommitdiff
path: root/pygnulib/GLTestDir.py
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-08-03 14:27:51 +0200
committerBruno Haible <bruno@clisp.org>2022-08-03 14:27:51 +0200
commited7b3d9bb825644533235fcc636134bc8bc368f2 (patch)
treea9b4130b353216ef3f476a066f9ef7603e5605e3 /pygnulib/GLTestDir.py
parentdbc9a4b304185e2cb0d9f425866f71161c9a1255 (diff)
downloadgnulib-ed7b3d9bb825644533235fcc636134bc8bc368f2.tar.gz
gnulib-tool.py: Avoid errors when writing to a VFAT file system, part 2.
* pygnulib/constants.py (movefile): New function. * pygnulib/*.py: Use it instead of shutil.
Diffstat (limited to 'pygnulib/GLTestDir.py')
-rw-r--r--pygnulib/GLTestDir.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pygnulib/GLTestDir.py b/pygnulib/GLTestDir.py
index c230fbc744..9065e462fa 100644
--- a/pygnulib/GLTestDir.py
+++ b/pygnulib/GLTestDir.py
@@ -54,6 +54,7 @@ TESTS = constants.TESTS
compiler = constants.compiler
joinpath = constants.joinpath
copyfile = constants.copyfile
+movefile = constants.movefile
isdir = os.path.isdir
isfile = os.path.isfile
normpath = os.path.normpath
@@ -658,7 +659,7 @@ class GLTestDir(object):
dest = src[:-1]
if isfile(dest):
os.remove(dest)
- shutil.move(src, dest)
+ movefile(src, dest)
# libtoolize
if libtool:
args = [UTILS['libtoolize'], '--copy']
@@ -692,7 +693,7 @@ class GLTestDir(object):
dest = src[:-1]
if isfile(dest):
os.remove(dest)
- shutil.move(src, dest)
+ movefile(src, dest)
# aclocal
args = [UTILS['aclocal'], '-I', joinpath('..', m4base)]
constants.execute(args, verbose)