From: Richard Purdie Date: Mon, 11 Jan 2016 23:30:19 +0000 (+0000) Subject: Revert "fetch2/local.py: avoid using PREMIRROR" X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c91b77d62efa5c178e364a418b71eca83b5cacd;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git Revert "fetch2/local.py: avoid using PREMIRROR" This reverts commit e130dca85bac82bd4d88f94a6bf9fe36e8ad4d7c. This is in fact a valid use case, for example the sstate.bbclass code sets up SSTATE_MIRRORS as PREMIRRORS. Its quite common to map those file:// urls to remote http:// urls and with the above change, this no longer works. --- diff --git a/lib/bb/fetch2/local.py b/lib/bb/fetch2/local.py index 72456519714..2d921f7e55d 100644 --- a/lib/bb/fetch2/local.py +++ b/lib/bb/fetch2/local.py @@ -126,8 +126,3 @@ class Local(FetchMethod): def clean(self, urldata, d): return - def try_premirror(self, urldata, d): - """ - Should premirrors be used? - """ - return False