File: Check-subcommand-execution.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 (28 lines) | stat: -rw-r--r-- 1,121 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
25
26
27
28
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Thu, 27 Feb 2020 16:34:03 +0100
Subject: Check subcommand execution

Origin: upstream, 0.99.1, commit:f231fb6f5da4784f6ebb6ecabc83c07bcf55321e
---
 meson_python_compile.py | 4 ++--
 meson_vapi_link.py      | 0
 2 files changed, 2 insertions(+), 2 deletions(-)
 mode change 100644 => 100755 meson_vapi_link.py

diff --git a/meson_python_compile.py b/meson_python_compile.py
index 1ffe0c0..24a74d8 100755
--- a/meson_python_compile.py
+++ b/meson_python_compile.py
@@ -8,7 +8,7 @@ if not os.environ.get('DESTDIR'):
   libdir = sys.argv[1]
 
   print('Byte-compiling python modules...')
-  subprocess.call(['python3', '-m', 'compileall', '-f', '-q', libdir])
+  subprocess.check_call(['python3', '-m', 'compileall', '-f', '-q', libdir])
 
   print('Byte-compiling python modules (optimized versions) ...')
-  subprocess.call(['python3', '-O', '-m', 'compileall', '-f', '-q', libdir])
+  subprocess.check_call(['python3', '-O', '-m', 'compileall', '-f', '-q', libdir])
diff --git a/meson_vapi_link.py b/meson_vapi_link.py
old mode 100644
new mode 100755