diff options
author | Chris Larson <clarson@kergoth.com> | 2004-05-22 16:51:59 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-05-22 16:51:59 +0000 |
commit | 665ce415b73f166baffbe6ac86bb2a55272f7a22 (patch) | |
tree | 44aa8f424934b98d3dccbea46a2341d9f161b063 /bin/oe | |
parent | 99fad5fb7fdd9ff54334ad6aa807055ce6354786 (diff) | |
download | bitbake-665ce415b73f166baffbe6ac86bb2a55272f7a22.tar.gz |
Deal with really annoying failure when the build code tries to return to a dir that doesnt exist.
Diffstat (limited to 'bin/oe')
-rw-r--r-- | bin/oe/build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/oe/build.py b/bin/oe/build.py index c7b0972bd..ab9e2f29f 100644 --- a/bin/oe/build.py +++ b/bin/oe/build.py @@ -131,7 +131,8 @@ def exec_func_python(func, d): g['os'] = os g['d'] = d exec comp in g - os.chdir(prevdir) + if os.path.exists(prevdir): + os.chdir(prevdir) def exec_func_shell(func, d): """Execute a shell OE 'function' Returns true if execution was successful. |