[libgit2-glib] meson_vapi_link.py: Don't reset the cwd



commit 272024b9370380a538417004d478ef594bd0703c
Author: Jan Alexander Steffens (heftig) <jan steffens gmail com>
Date:   Sun Mar 1 17:33:12 2020 +0000

    meson_vapi_link.py: Don't reset the cwd
    
    We're exiting anyway so it's unnecessary.

 meson_vapi_link.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/meson_vapi_link.py b/meson_vapi_link.py
index eb64fd6..5b33063 100644
--- a/meson_vapi_link.py
+++ b/meson_vapi_link.py
@@ -5,18 +5,14 @@ import subprocess
 import sys
 
 vapidir = os.path.join(os.environ['MESON_INSTALL_DESTDIR_PREFIX'], sys.argv[1], 'vala', 'vapi')
+os.chdir(vapidir)
 
 # FIXME: meson will not track the creation of these files
 #        https://github.com/mesonbuild/meson/blob/master/mesonbuild/scripts/uninstall.py#L39
 old = 'ggit-1.0'
 new = 'libgit2-glib-1.0'
 
-wd = os.getcwd()
-os.chdir(vapidir)
-
 for ext in ['vapi', 'deps']:
   src = os.path.join('{}.{}'.format(new, ext))
   dest = os.path.join('{}.{}'.format(old, ext))
   subprocess.call(['ln', '-s', '-f', src, dest])
-
-os.chdir(wd)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]