From: Michael Tremer Date: Thu, 1 Dec 2016 17:48:38 +0000 (+0100) Subject: daemon: Use the new HTTP client to download source packages X-Git-Tag: 0.9.28~1285^2~1443 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=036cf2fcf36bee2a5b3bb1d73a8f4bba7af07612;p=pakfire.git daemon: Use the new HTTP client to download source packages Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/daemon.py b/src/pakfire/daemon.py index be59a2a3e..7a0983420 100644 --- a/src/pakfire/daemon.py +++ b/src/pakfire/daemon.py @@ -12,12 +12,12 @@ import time import pakfire.base import pakfire.builder import pakfire.config -import pakfire.downloader import pakfire.system import pakfire.util from pakfire.system import system from . import base +from . import http from . import transport from pakfire.constants import * @@ -490,8 +490,8 @@ class PakfireWorker(multiprocessing.Process): p = pakfire.base.PakfireBuilder(config=config, arch=job.arch) # Download the source package. - grabber = pakfire.downloader.PackageDownloader(p) - grabber.urlgrab(job.source_url, filename=tmpfile) + client = http.Client() + client.retrieve(job.source_url, tmpfile) # Check if the download checksum matches (if provided). if job.source_hash_sha512: