projects
/
vuplus_bitbake
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
320a4e3
)
Fix for #88 - written by proti:
author
Marcin Juszkiewicz
<marcin@juszkiewicz.com.pl>
Thu, 30 Jun 2005 09:44:36 +0000
(09:44 +0000)
committer
Marcin Juszkiewicz
<marcin@juszkiewicz.com.pl>
Thu, 30 Jun 2005 09:44:36 +0000
(09:44 +0000)
The function should be shielded against the posibility that prevdir could be removed by the function.
lib/bb/build.py
patch
|
blob
|
history
diff --git
a/lib/bb/build.py
b/lib/bb/build.py
index
dd8b5e1
..
599b45d
100644
(file)
--- 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'"""