summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-03-22 16:59:55 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-23 17:54:41 +0000
commitd8137be4de7765c1303933447c9746c32bfc0b22 (patch)
tree53afa6c8b6b9a6f85fedcf9294b91edfaa7fa87f /bitbake/lib/bb/fetch2
parent1d1aaa2f561a18e10314e8ed07b616c11b1286ae (diff)
downloadpoky-d8137be4de7765c1303933447c9746c32bfc0b22.tar.gz
bitbake: cache: Make BB_DONT_CACHE variable external
This makes it possible to prevent a recipe to be cached, and thus, parsed every time. Use with care. [YOCTO #8853] (Bitbake rev: 78335c1fbe5266116700c2413aac28b00423a75b) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index f86014cbf1..5df642e373 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -713,7 +713,7 @@ def subprocess_setup():
713def get_autorev(d): 713def get_autorev(d):
714 # only not cache src rev in autorev case 714 # only not cache src rev in autorev case
715 if d.getVar('BB_SRCREV_POLICY', True) != "cache": 715 if d.getVar('BB_SRCREV_POLICY', True) != "cache":
716 d.setVar('__BB_DONT_CACHE', '1') 716 d.setVar('BB_DONT_CACHE', '1')
717 return "AUTOINC" 717 return "AUTOINC"
718 718
719def get_srcrev(d, method_name='sortable_revision'): 719def get_srcrev(d, method_name='sortable_revision'):