File: 0002-Don-t-access-internet-during-build.patch

package info (click to toggle)
python-pygit2 1.4.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,328 kB
  • sloc: ansic: 11,016; python: 5,943; sh: 275; makefile: 19
file content (24 lines) | stat: -rw-r--r-- 491 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: =?utf-8?b?T25kxZllaiBOb3bDvQ==?= <onovy@debian.org>
Date: Fri, 1 Dec 2017 14:59:57 +0100
Subject: Don't access internet during build

---
 test/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/test/utils.py
+++ b/test/utils.py
@@ -37,12 +37,7 @@
 
 
 
-try:
-    socket.gethostbyname('github.com')
-except socket.gaierror:
-    has_network = False
-else:
-    has_network = True
+has_network = False
 
 requires_network = pytest.mark.skipif(
     not has_network,