From 2d7f1ec85c8242b1348597e7963b962efe562070 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Tue, 5 Sep 2017 10:54:10 +1200 Subject: command: Add command to invalidate parse cache If we make a change to the metadata within a tinfoil-using script and then attempt to run tasks using build_targets(), the change won't get noticed. Add an explicit command that will set the internal flag to force reloading the cache and thus pick up the changes. This will be used in OE by the devtool source extraction rework. Part of the fix for [YOCTO #11198]. Signed-off-by: Paul Eggleton --- lib/bb/command.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/bb/command.py b/lib/bb/command.py index 6c966e3db..c3717abc2 100644 --- a/lib/bb/command.py +++ b/lib/bb/command.py @@ -574,6 +574,9 @@ class CommandsSync: return DataStoreConnectionHandle(idx) parseRecipeFile.readonly = True + def invalidateParseCache(self, command, params): + command.cooker.parsecache_valid = False + class CommandsAsync: """ A class of asynchronous commands -- cgit 1.2.3-korg