summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-01-06 17:02:19 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-06 15:55:55 +0000
commit1c0884399815cf0e42a0990bf30c6216eea741ed (patch)
tree06dbd7b72a11ea5a13a696a00d64066f89a96937
parent2b8bd22c7c98891203505a1d0a02655173d9afa3 (diff)
downloadpoky-1c0884399815cf0e42a0990bf30c6216eea741ed.tar.gz
command.py: Modify needcache value for certain functions
for findConfigFiels() and findFilesMatchingInDir() functions, they don't need to parse all the bb files, thus setting the needcache value to be False. (Bitbake rev: 3ef73dee8b08ccfd15a4901cce315a99b22e71d7) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/command.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index 83907f6cc3..5dec6a9d09 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -241,7 +241,7 @@ class CommandsAsync:
241 241
242 command.cooker.findConfigFiles(varname) 242 command.cooker.findConfigFiles(varname)
243 command.finishAsyncCommand() 243 command.finishAsyncCommand()
244 findConfigFiles.needcache = True 244 findConfigFiles.needcache = False
245 245
246 def findFilesMatchingInDir(self, command, params): 246 def findFilesMatchingInDir(self, command, params):
247 """ 247 """
@@ -253,7 +253,7 @@ class CommandsAsync:
253 253
254 command.cooker.findFilesMatchingInDir(pattern, directory) 254 command.cooker.findFilesMatchingInDir(pattern, directory)
255 command.finishAsyncCommand() 255 command.finishAsyncCommand()
256 findFilesMatchingInDir.needcache = True 256 findFilesMatchingInDir.needcache = False
257 257
258 def findConfigFilePath(self, command, params): 258 def findConfigFilePath(self, command, params):
259 """ 259 """