From 66734d7a0d103957add7ad6705f971f3ee874156 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 29 Apr 2006 17:49:49 +0000 Subject: bitbake-1.4/lib/bb/cache.py: Check directory exists befor chdir this patch was taken from attachment http://bugs.openembedded.org/attachment.cgi?id=691&action=view of bug #918 --- lib/bb/cache.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/bb/cache.py b/lib/bb/cache.py index e3e0d6a16..921a9f758 100644 --- 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 -- cgit 1.2.3-korg