]> git.ipfire.org Git - pbs.git/commitdiff
mirrors: Always use the buildservice as last resort
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 25 Oct 2017 17:03:45 +0000 (18:03 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 25 Oct 2017 17:03:45 +0000 (18:03 +0100)
Fixes #11516

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/web/handlers.py

index 0511721fb8e36397d2b9ab1659c265ad9df1ec1a..99b35e6fdaf612276c11dcae2cc4baea6e7982c3 100644 (file)
@@ -225,6 +225,11 @@ class RepositoryMirrorlistHandler(BaseHandler):
                                "location"  : mirror.country_code,
                        })
 
+               # Always use the buildservice itself as last resort
+               mirrors.append({
+                       "url" : repo.url,
+               })
+
                ret["mirrors"] = mirrors
                self.finish(ret)