From: Chen Qi Date: Fri, 19 Jul 2019 10:00:09 +0000 (+0800) Subject: devtool: remove temp dir in upgrade X-Git-Tag: uninative-2.7~715 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=8a0602327d5afcf4f36850d3f05c9721305852af;p=openembedded-core.git 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. Signed-off-by: Chen Qi Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py index 706f91c935..18c5b66a29 100644 --- a/scripts/lib/devtool/upgrade.py +++ b/scripts/lib/devtool/upgrade.py @@ -281,6 +281,7 @@ def _extract_new_source(newpv, srctree, no_patch, srcrev, srcbranch, branch, kee logger.info('Preserving temporary directory %s' % tmpsrctree) else: shutil.rmtree(tmpsrctree) + shutil.rmtree(tmpdir) return (rev, md5, sha256, srcbranch, srcsubdir_rel)