summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorChandana kalluri <ckalluri@xilinx.com>2021-09-27 19:40:18 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-07 15:10:40 +0100
commit269265c00091fa65f93de6cad32bf24f1e7f72a3 (patch)
tree6d1e49586ca61451d1699d44ee40198c8b52a0b0 /bitbake/lib/bb/fetch2/git.py
parenta662500c4939803d0b295d21498069f227d91b8f (diff)
downloadpoky-269265c00091fa65f93de6cad32bf24f1e7f72a3.tar.gz
scriptutils.py: Add check before deleting path
Add a check before deleting path when using recipetool commands to avoid the following type of errors: Traceback (most recent call last): File "<workdir>/sources/core/scripts/lib/scriptutils.py", line 218, in fetch_url shutil.rmtree(path) File "/usr/local/lib/python3.7/shutil.py", line 476, in rmtree onerror(os.lstat, path, sys.exc_info()) File "/usr/local/lib/python3.7/shutil.py", line 474, in rmtree orig_st = os.lstat(path) FileNotFoundError: [Errno 2] No such file or directory: '<workdir>/build/tmp/work/recipetool-usg7o81n/work/recipe-sysroot' ERROR: Command 'script -e -q -c "recipetool --color=always create --devtool -o /tmp/devtool5sq_op37 'file:///<SRCTREE>' -x <workdir>/build/workspace/sources/devtoolsrcxc1b9zjq -N test" /dev/null' failed (From OE-Core rev: 366070c476405a1f49e22a02c21fd99fc0ec76d9) Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit b6aa8b47e023004ffd6958d1cec18c2d9c95d77b) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
0 files changed, 0 insertions, 0 deletions