summaryrefslogtreecommitdiff
path: root/user/gobject-introspection/support-cross-filesystem-move.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/gobject-introspection/support-cross-filesystem-move.patch')
-rw-r--r--user/gobject-introspection/support-cross-filesystem-move.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/user/gobject-introspection/support-cross-filesystem-move.patch b/user/gobject-introspection/support-cross-filesystem-move.patch
new file mode 100644
index 000000000..80fc80baa
--- /dev/null
+++ b/user/gobject-introspection/support-cross-filesystem-move.patch
@@ -0,0 +1,11 @@
+--- a/misc/update-glib-annotations.py
++++ b/misc/update-glib-annotations.py
+@@ -57,7 +57,7 @@
+ extract_annotations(module_name, glib_src_dir, target)
+ if os.path.isfile(target_path):
+ os.unlink(target_path)
+- os.rename(tmpname, target_path)
++ shutil.move(tmpname, target_path)
+
+ print("Updated '%s'" % (target_path, ))
+