summaryrefslogtreecommitdiffstats
path: root/lib/bb/build.py
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>2005-06-30 09:44:36 +0000
committerMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>2005-06-30 09:44:36 +0000
commita02943513551ed4ed27038c06afb9f5eecdea994 (patch)
treef3f040ffee6f751bf4b742b82017536a11cda77d /lib/bb/build.py
parent320a4e33d634f7c061d985ef7f693ec4496c6630 (diff)
downloadbitbake-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.
Diffstat (limited to 'lib/bb/build.py')
-rw-r--r--lib/bb/build.py4
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'"""