diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2006-07-08 14:41:46 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2006-07-08 14:41:46 +0000 |
commit | da652d60033fc735e6d5000fa05c6c8174ab3125 (patch) | |
tree | afc6c8a53666dd2b195df7bc9e98fcb86ed6dd78 | |
parent | f9cb6a4ae685c7580c7b4eb267179c0448325914 (diff) | |
download | bitbake-da652d60033fc735e6d5000fa05c6c8174ab3125.tar.gz |
lib/bb/build.py: fix for 1017, try to change back to the prevdir
In the case of rm_work.bbclass we might have deleted the
directory where we come from. Do not fail to avoid
the issues described in #1017
-rw-r--r-- | lib/bb/build.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py index 4c304754b..c8928deb1 100644 --- a/lib/bb/build.py +++ b/lib/bb/build.py @@ -187,7 +187,10 @@ def exec_func_shell(func, d): else: maybe_fakeroot = '' ret = os.system('%ssh -e %s' % (maybe_fakeroot, runfile)) - os.chdir(prevdir) + try: + os.chdir(prevdir) + except: + pass # restore the backups os.dup2(osi[0], osi[1]) |