Patchwork [1/3] sstate.bbclass: kill MIRRORS and FILESPATH to speed up fetching

login
register
mail settings
Submitter Christopher Larson
Date June 10, 2013, 8:46 p.m.
Message ID <20c43ce563bb2645ae95b1795b0fe2248b9e1b43.1370896970.git.chris_larson@mentor.com>
Download mbox | patch
Permalink /patch/51425/
State Accepted
Commit fbf64380f42aeb3dbedcf66b11b87a52aecf0719
Headers show

Comments

Christopher Larson - June 10, 2013, 8:46 p.m.
From: Christopher Larson <chris_larson@mentor.com>

The default FILESPATH isn't really of use, as we don't expect to find sstate
archives buried in layer recipe directories, and the default MIRRORS is
intended for use for fetching SRC_URI, not sstate.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
 meta/classes/sstate.bbclass | 2 ++
 1 file changed, 2 insertions(+)
Otavio Salvador - June 10, 2013, 8:50 p.m.
On Mon, Jun 10, 2013 at 5:46 PM, Christopher Larson <kergoth@gmail.com>wrote:

> From: Christopher Larson <chris_larson@mentor.com>
>
> The default FILESPATH isn't really of use, as we don't expect to find
> sstate
> archives buried in layer recipe directories, and the default MIRRORS is
> intended for use for fetching SRC_URI, not sstate.
>
> Signed-off-by: Christopher Larson <chris_larson@mentor.com>
>

Reviewed-by: Otavio Salvador <otavio@ossystems.com.br>

Patch

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index e74c642..3aa4371 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -508,6 +508,8 @@  def pstaging_fetch(sstatefetch, sstatepkg, d):
 
     bb.mkdirhier(dldir)
 
+    localdata.delVar('MIRRORS')
+    localdata.delVar('FILESPATH')
     localdata.setVar('DL_DIR', dldir)
     localdata.setVar('PREMIRRORS', mirrors)
     localdata.setVar('SRC_URI', srcuri)