File: 002_fix-build-error-if-git-not-installed.patch

package info (click to toggle)
pacparser 1.4.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,060 kB
  • sloc: ansic: 78,141; makefile: 436; perl: 395; python: 299; sh: 149; asm: 46; javascript: 38
file content (25 lines) | stat: -rw-r--r-- 763 bytes parent folder | download | duplicates (2)
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
Description: Fix for build error if not installed.
 Patch extracted from BR #1054725 debdiff.
Author: Yogeswaran Umasankar <kd8mbd@gmail.com>
Forwarded: not-needed
Last-Update: 2024-01-17

--- a/src/pymod/setup.py
+++ b/src/pymod/setup.py
@@ -70,11 +70,11 @@ def git_version():
 
 
 def pacparser_version():
-    if (
-        subprocess.call("git rev-parse --git-dir".split(" "), stderr=subprocess.DEVNULL)
-        == 0
-    ):
-        return git_version()
+    #if (
+    #    subprocess.call("git rev-parse --git-dir".split(" "), stderr=subprocess.DEVNULL)
+    #    == 0
+    #):
+    #    return git_version()
 
     # Check if we have version.mk. It's added in the manual release tarball.
     version_file = os.path.join(setup_dir(), "..", "version.mk")