mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
devtool: remove temp dir in upgrade
For now, the temp dir is left in system, although the temporary source directory has been cleaned up. So we clean it up too. (From OE-Core rev: 8a0602327d5afcf4f36850d3f05c9721305852af) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
1c7a734922
commit
cedd95e091
|
@ -281,6 +281,7 @@ def _extract_new_source(newpv, srctree, no_patch, srcrev, srcbranch, branch, kee
|
||||||
logger.info('Preserving temporary directory %s' % tmpsrctree)
|
logger.info('Preserving temporary directory %s' % tmpsrctree)
|
||||||
else:
|
else:
|
||||||
shutil.rmtree(tmpsrctree)
|
shutil.rmtree(tmpsrctree)
|
||||||
|
shutil.rmtree(tmpdir)
|
||||||
|
|
||||||
return (rev, md5, sha256, srcbranch, srcsubdir_rel)
|
return (rev, md5, sha256, srcbranch, srcsubdir_rel)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user