[libgit2-glib] meson: Fix vala symlink script
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] meson: Fix vala symlink script
- Date: Sun, 13 Feb 2022 21:20:27 +0000 (UTC)
commit 2d96066cc70936ecd5725eef6405c5feac2b4a77
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Sun Feb 13 20:17:04 2022 +0100
meson: Fix vala symlink script
An external script is used to create symlinks for backward
compatibility on meson files.
When the files already exist, the script raises an exception. Since
the files already exists no new links are created.
meson_vapi_link.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/meson_vapi_link.py b/meson_vapi_link.py
index 9eb3f2c..20afe0c 100755
--- a/meson_vapi_link.py
+++ b/meson_vapi_link.py
@@ -21,5 +21,7 @@ for ext in ['vapi', 'deps']:
dest = '{}.{}'.format(old, ext)
try:
os.symlink(src, dest)
+ except FileExistsError:
+ pass
except OSError:
shutil.copy(src, dest)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]