]> code.ossystems Code Review - openembedded-core.git/commitdiff
devtool: remove temp dir in upgrade
authorChen Qi <Qi.Chen@windriver.com>
Fri, 19 Jul 2019 10:00:09 +0000 (18:00 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 20 Jul 2019 11:04:24 +0000 (12:04 +0100)
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 <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/upgrade.py

index 706f91c935842de2b09981781992141df408d350..18c5b66a295f64bddb73bde6903907332c14ab17 100644 (file)
@@ -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)