From: Chen Qi Date: Fri, 19 Jul 2019 10:00:09 +0000 (+0800) Subject: devtool: remove temp dir in upgrade X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cedd95e09194ea03194c165b6dffe3fdfae2d30a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.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. (From OE-Core rev: 8a0602327d5afcf4f36850d3f05c9721305852af) 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 706f91c9358..18c5b66a295 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)