summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-12-22 17:03:17 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-15 15:51:40 +0000
commit84d48acb01db0bc87d90c11832b56bcbef9dd0f2 (patch)
tree8a297bbfbb1bfa46ec3ded8524b661f18505fd9f /scripts
parent4369329b7648a746a2ba00feefa04d15415e523f (diff)
downloadpoky-84d48acb01db0bc87d90c11832b56bcbef9dd0f2.tar.gz
recipetool: create: fix error when extracting source to a specified directory
Having fetched the source and unpacked it to a temporary directory, we then move part of it to the destination directory, or if the source is at the top level we move the whole temporary directory, but in the latter case we were later attempting to delete the temporary directory which no longer existed. Clear out the variable so that doesn't happen. (From OE-Core master rev: 91714a52e91cddba5a16c73cf5765d1f47f7856c) (From OE-Core rev: 8b7644fa4cd72b7f80d2aaa3bfcd2efed2402d37) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/recipetool/create.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index bf4277ced3..8305e43648 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -283,6 +283,8 @@ def create_recipe(args):
283 # to just remove it first 283 # to just remove it first
284 os.rmdir(args.extract_to) 284 os.rmdir(args.extract_to)
285 shutil.move(srctree, args.extract_to) 285 shutil.move(srctree, args.extract_to)
286 if tempsrc == srctree:
287 tempsrc = None
286 logger.info('Source extracted to %s' % args.extract_to) 288 logger.info('Source extracted to %s' % args.extract_to)
287 289
288 if outfile == '-': 290 if outfile == '-':