projects
/
vuplus_bitbake
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4811412
)
lib/bb/cache.py:
author
Richard Purdie
<rpurdie@linux.intel.com>
Sat, 29 Apr 2006 10:12:12 +0000
(10:12 +0000)
committer
Richard Purdie
<rpurdie@linux.intel.com>
Sat, 29 Apr 2006 10:12:12 +0000
(10:12 +0000)
- Check the directory exists before chdir. Catches the parsing error
instead of crashing bitbake.
lib/bb/cache.py
patch
|
blob
|
history
diff --git
a/lib/bb/cache.py
b/lib/bb/cache.py
index
e3e0d6a
..
921a9f7
100644
(file)
--- a/
lib/bb/cache.py
+++ b/
lib/bb/cache.py
@@
-271,7
+271,8
@@
class Cache:
#data.setVar('TOPDIR', topdir, cfg)
# go there
oldpath = os.path.abspath(os.getcwd())
- os.chdir(topdir)
+ if self.mtime(topdir):
+ os.chdir(topdir)
bb_data = data.init_db(cooker.configuration.data)
try:
parse.handle(bbfile, bb_data) # read .bb data