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:
Chen Qi 2019-07-19 18:00:09 +08:00 committed by Richard Purdie
parent 1c7a734922
commit cedd95e091

View File

@ -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)