diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2019-07-19 18:00:09 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-22 17:31:03 +0100 |
commit | cedd95e09194ea03194c165b6dffe3fdfae2d30a (patch) | |
tree | a1e1dfae68a38f61d4c3f7f82867b7c7795a0693 /scripts/lib/devtool | |
parent | 1c7a734922041d5fa8936dbb7652e46eb22a8aab (diff) | |
download | poky-cedd95e09194ea03194c165b6dffe3fdfae2d30a.tar.gz |
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>
Diffstat (limited to 'scripts/lib/devtool')
-rw-r--r-- | scripts/lib/devtool/upgrade.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 | |||
281 | logger.info('Preserving temporary directory %s' % tmpsrctree) | 281 | logger.info('Preserving temporary directory %s' % tmpsrctree) |
282 | else: | 282 | else: |
283 | shutil.rmtree(tmpsrctree) | 283 | shutil.rmtree(tmpsrctree) |
284 | shutil.rmtree(tmpdir) | ||
284 | 285 | ||
285 | return (rev, md5, sha256, srcbranch, srcsubdir_rel) | 286 | return (rev, md5, sha256, srcbranch, srcsubdir_rel) |
286 | 287 | ||