]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
fetch2/local.py: avoid using PREMIRROR
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 4 Jan 2016 10:15:39 +0000 (02:15 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Jan 2016 14:07:42 +0000 (14:07 +0000)
The PREMIRROR isn't useful for "file://", so avoid using it, this is
good for searching speed and can reduce useless lines in log.do_fetch.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/fetch2/local.py

index 2d921f7e55d48fe030c13def1a5e28a5faf38863..724565197149d641f1cd3b1c0fc1c7f0991699ff 100644 (file)
@@ -126,3 +126,8 @@ class Local(FetchMethod):
     def clean(self, urldata, d):
         return
 
+    def try_premirror(self, urldata, d):
+        """
+        Should premirrors be used?
+        """
+        return False