From: Richard Purdie Date: Sun, 25 Jul 2010 10:32:42 +0000 (+0100) Subject: bitbake: fetch: Only mark srcrev recipes as uncached when outside of SRCREV caching... X-Git-Tag: 2011-1~5065 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=36cfff8ed5b8a777a09cc8abcd8b01a1f297e404;p=openembedded-core.git bitbake: fetch: Only mark srcrev recipes as uncached when outside of SRCREV caching mode Signed-off-by: Richard Purdie --- 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): bb.msg.error(bb.msg.domain.Fetcher, "SRCREV was used yet no valid SCM was found in SRC_URI") raise ParameterError - bb.data.setVar('__BB_DONT_CACHE', '1', d) + 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)