diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-25 11:32:42 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-25 11:32:42 +0100 |
commit | 36cfff8ed5b8a777a09cc8abcd8b01a1f297e404 (patch) | |
tree | b2e7e8a8cb0a74270a2da8b949036494b6012248 /bitbake/lib | |
parent | 0babe2c5071f9d3c0504bbaf3cd4ab1dc9c2da60 (diff) | |
download | poky-36cfff8ed5b8a777a09cc8abcd8b01a1f297e404.tar.gz |
bitbake: fetch: Only mark srcrev recipes as uncached when outside of SRCREV caching mode
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index 31b9653793..d5ec99bbb6 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/lib/bb/fetch/__init__.py | |||
@@ -355,7 +355,8 @@ def get_srcrev(d): | |||
355 | bb.msg.error(bb.msg.domain.Fetcher, "SRCREV was used yet no valid SCM was found in SRC_URI") | 355 | bb.msg.error(bb.msg.domain.Fetcher, "SRCREV was used yet no valid SCM was found in SRC_URI") |
356 | raise ParameterError | 356 | raise ParameterError |
357 | 357 | ||
358 | bb.data.setVar('__BB_DONT_CACHE', '1', d) | 358 | if bb.data.getVar('BB_SRCREV_POLICY', d, True) != "cache": |
359 | bb.data.setVar('__BB_DONT_CACHE', '1', d) | ||
359 | 360 | ||
360 | if len(scms) == 1: | 361 | if len(scms) == 1: |
361 | return urldata[scms[0]].method.sortable_revision(scms[0], urldata[scms[0]], d) | 362 | return urldata[scms[0]].method.sortable_revision(scms[0], urldata[scms[0]], d) |