diff options
author | Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> | 2005-06-30 09:44:36 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> | 2005-06-30 09:44:36 +0000 |
commit | a02943513551ed4ed27038c06afb9f5eecdea994 (patch) | |
tree | f3f040ffee6f751bf4b742b82017536a11cda77d | |
parent | 320a4e33d634f7c061d985ef7f693ec4496c6630 (diff) | |
download | bitbake-a02943513551ed4ed27038c06afb9f5eecdea994.tar.gz |
Fix for #88 - written by proti:
The function should be shielded against the posibility that prevdir could be removed by the function.
-rw-r--r-- | lib/bb/build.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py index dd8b5e13e..599b45d9d 100644 --- a/lib/bb/build.py +++ b/lib/bb/build.py @@ -114,7 +114,9 @@ def exec_func(func, d, dirs = None): exec_func_python(func, d) else: exec_func_shell(func, d) - os.chdir(prevdir) + + if os.path.exists(prevdir): + os.chdir(prevdir) def exec_func_python(func, d): """Execute a python BB 'function'""" |