diff options
author | Yu Ke <ke.yu@intel.com> | 2010-12-27 16:20:34 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-10 23:36:39 +0000 |
commit | c557a67a7904772e31326b4c216b59ad1dbc985b (patch) | |
tree | 0fe4845c22deef9ef94c2ae91c0bb6f87b169954 /lib/bb | |
parent | 99c81a1ae3ea5894d9c78caae30edda455ebce4f (diff) | |
download | bitbake-c557a67a7904772e31326b4c216b59ad1dbc985b.tar.gz |
Fetcher: only set __BB_DONT_CACHE when SRCREV = "${AUTOREV}"
we should cache SRCREV whenever possible, the only exception is
when SREREV is auto rev. so change the logic to only set __BB_DONT_CACHE
at SRCREV = "${AUTOREV}" case
(From Poky rev: 2b2dbf76126650750cb8a6778b837af6fe4c8b21)
Signed-off-by: Yu Ke <ke.yu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb')
-rw-r--r-- | lib/bb/fetch2/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 8c5d3ad6a..2aeb8b8fe 100644 --- a/lib/bb/fetch2/__init__.py +++ b/lib/bb/fetch2/__init__.py @@ -354,6 +354,9 @@ def localpaths(d): return local def get_autorev(d): + # only not cache src rev in autorev case + if bb.data.getVar('BB_SRCREV_POLICY', d, True) != "cache": + bb.data.setVar('__BB_DONT_CACHE', '1', d) return "AUTOINC" def get_srcrev(d): @@ -380,9 +383,6 @@ def get_srcrev(d): logger.error("SRCREV was used yet no valid SCM was found in SRC_URI") raise ParameterError - if bb.data.getVar('BB_SRCREV_POLICY', d, True) != "cache": - bb.data.setVar('__BB_DONT_CACHE', '1', d) - if len(scms) == 1: return urldata[scms[0]].method.sortable_revision(scms[0], urldata[scms[0]], d) |