[bitbake-devel] [PATCH 1/1] fetch2/local.py: avoid using PREMIRROR

Robert Yang liezhi.yang at windriver.com
Mon Jan 4 10:15:39 UTC 2016


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 at windriver.com>
---
 bitbake/lib/bb/fetch2/local.py |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bitbake/lib/bb/fetch2/local.py b/bitbake/lib/bb/fetch2/local.py
index 2d921f7..7245651 100644
--- a/bitbake/lib/bb/fetch2/local.py
+++ b/bitbake/lib/bb/fetch2/local.py
@@ -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
-- 
1.7.9.5




More information about the bitbake-devel mailing list