File gapk-disable-codec-dl-during-build.diff of Package gapk
diff --git a/libgsmhr/fetch_sources.py b/libgsmhr/fetch_sources.py
index 178125c..efa7e75 100755
--- a/libgsmhr/fetch_sources.py
+++ b/libgsmhr/fetch_sources.py
@@ -8,8 +8,7 @@ import sys
import zipfile
-URL = "http://www.3gpp.org/ftp/Specs/archive/06_series/06.06/0606-421.zip"
-
+URL = "file://" + os.path.abspath("0606_421.zip")
def get_zipfile(data: bytes) -> zipfile.ZipFile:
return zipfile.ZipFile(io.BytesIO(data), 'r')
@@ -46,13 +45,6 @@ def main(*args):
# Get the original data
log.info('Requesting file: %s', URL)
with urllib.request.urlopen(URL) as response:
- log.debug('Response code: %d', response.code)
- assert response.code == 200
-
- for h in ('Last-Modified', 'Content-Type', 'Content-Length'):
- log.debug('%s: %s', h, response.getheader(h))
-
- log.info('Downloading %d bytes...', response.length)
d = response.read()
# Get DISK.zip