Files
MINGW-packages/mingw-w64-libgit2-glib/install-no-symlinks.patch
Christoph Reiter a9ae023bdb libgit2-glib: avoid installing symlinks
Wont work unless symlinks are enabled, which isn't true for all users.
2021-12-30 07:13:00 +01:00

18 lines
523 B
Diff

--- libgit2-glib-1.0.0.1/meson_vapi_link.py.orig 2021-12-30 07:08:46.460960300 +0100
+++ libgit2-glib-1.0.0.1/meson_vapi_link.py 2021-12-30 07:08:49.817351500 +0100
@@ -22,7 +22,10 @@
for ext in ['vapi', 'deps']:
src = '{}.{}'.format(new, ext)
dest = '{}.{}'.format(old, ext)
- try:
- os.symlink(src, dest)
- except OSError:
- shutil.copy(src, dest)
+ if os.name == 'nt':
+ shutil.copy(src, dest)
+ else:
+ try:
+ os.symlink(src, dest)
+ except OSError:
+ shutil.copy(src, dest)