From: Paul Eggleton Date: Tue, 22 Dec 2015 04:03:17 +0000 (+1300) Subject: recipetool: create: fix error when extracting source to a specified directory X-Git-Tag: 2016-4~1825 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=91714a52e91cddba5a16c73cf5765d1f47f7856c;p=openembedded-core.git 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. Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index 4887604219..873b7ddcc6 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py @@ -404,6 +404,8 @@ def create_recipe(args): # to just remove it first os.rmdir(args.extract_to) shutil.move(srctree, args.extract_to) + if tempsrc == srctree: + tempsrc = None logger.info('Source extracted to %s' % args.extract_to) if outfile == '-':