summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-03-25 09:11:34 -0700
committerChris Larson <chris_larson@mentor.com>2011-03-25 09:11:34 -0700
commit278fb41793343eb7c4c801242e6a0dda5aebbbaf (patch)
tree9bab96276db4f3daa96005941279b2905c356906 /lib
parent7a29ab534388c0095f7f826b16c5cff343927d10 (diff)
downloadbitbake-278fb41793343eb7c4c801242e6a0dda5aebbbaf.tar.gz
build: don't choke if olddir no longer exists
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/build.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index 3fb025233..2036ca475 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -203,7 +203,10 @@ def exec_func_python(func, d, runfile, cwd=None):
raise FuncFailed(func, None)
finally:
if cwd and olddir:
- os.chdir(olddir)
+ try:
+ os.chdir(olddir)
+ except OSError:
+ pass
def exec_func_shell(function, d, runfile, cwd=None, fakeroot=False):
"""Execute a shell function from the metadata