From 8a0602327d5afcf4f36850d3f05c9721305852af Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Fri, 19 Jul 2019 18:00:09 +0800 Subject: 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 --- scripts/lib/devtool/upgrade.py | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/lib') 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) -- cgit 1.2.3-korg