[bitbake-devel,01/10] command.py: Modify needcache value for certain functions

Submitted by Dongxiao Xu on Dec. 15, 2011, 7:14 a.m.

Details

Message ID 83005167bdc0b5b030428ce7e87021b2d86c7510.1323933009.git.dongxiao.xu@intel.com
State Accepted
Commit 3ef73dee8b08ccfd15a4901cce315a99b22e71d7
Headers show

Commit Message

Dongxiao Xu Dec. 15, 2011, 7:14 a.m.
for findConfigFiels() and findFilesMatchingInDir() functions, they
don't need to parse all the bb files, thus setting the needcache
value to be False.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 lib/bb/command.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/lib/bb/command.py b/lib/bb/command.py
index 83907f6..5dec6a9 100644
--- a/lib/bb/command.py
+++ b/lib/bb/command.py
@@ -241,7 +241,7 @@  class CommandsAsync:
 
         command.cooker.findConfigFiles(varname)
         command.finishAsyncCommand()
-    findConfigFiles.needcache = True
+    findConfigFiles.needcache = False
 
     def findFilesMatchingInDir(self, command, params):
         """
@@ -253,7 +253,7 @@  class CommandsAsync:
 
         command.cooker.findFilesMatchingInDir(pattern, directory)
         command.finishAsyncCommand()
-    findFilesMatchingInDir.needcache = True
+    findFilesMatchingInDir.needcache = False
 
     def findConfigFilePath(self, command, params):
         """