File: meson_vapi_link.py-Remove-unnecessary-os.path.join.patch

package info (click to toggle)
libgit2-glib 0.99.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,692 kB
  • sloc: ansic: 17,155; python: 1,989; makefile: 21; sh: 7
file content (24 lines) | stat: -rw-r--r-- 811 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Sun, 1 Mar 2020 17:33:12 +0000
Subject: meson_vapi_link.py: Remove unnecessary os.path.join

We only have one argument, so it does nothing.

Origin: upstream, 0.99.1, commit:f49f3f5a6cc20f54cdd9001f64912ca4d018ffec
---
 meson_vapi_link.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meson_vapi_link.py b/meson_vapi_link.py
index 5b33063..58e0f6b 100644
--- a/meson_vapi_link.py
+++ b/meson_vapi_link.py
@@ -13,6 +13,6 @@ old = 'ggit-1.0'
 new = 'libgit2-glib-1.0'
 
 for ext in ['vapi', 'deps']:
-  src = os.path.join('{}.{}'.format(new, ext))
-  dest = os.path.join('{}.{}'.format(old, ext))
+  src = '{}.{}'.format(new, ext)
+  dest = '{}.{}'.format(old, ext)
   subprocess.call(['ln', '-s', '-f', src, dest])