]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
Revert "fetch2/local.py: avoid using PREMIRROR"
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Jan 2016 23:30:19 +0000 (23:30 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Jan 2016 23:30:19 +0000 (23:30 +0000)
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.

lib/bb/fetch2/local.py

index 724565197149d641f1cd3b1c0fc1c7f0991699ff..2d921f7e55d48fe030c13def1a5e28a5faf38863 100644 (file)
@@ -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