From: Michael Tremer Date: Wed, 1 Nov 2017 21:25:32 +0000 (+0100) Subject: http: Add baseurl as mirror with least priority X-Git-Tag: 0.9.28~1285^2~1328 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5b795369269ef43a2abe102207f409326abe9bc;p=pakfire.git http: Add baseurl as mirror with least priority Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/http.py b/src/pakfire/http.py index e41350570..d362fae09 100644 --- a/src/pakfire/http.py +++ b/src/pakfire/http.py @@ -78,6 +78,9 @@ class Client(object): if not verify: self.disable_certificate_verification() + # Add the baseurl as mirror with worst priority + self.add_mirror(self.baseurl, priority=999) + def set_proxy(self, protocol, host): """ Sets a proxy that will be used to send this request