diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-12-22 17:03:17 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-22 16:44:04 +0000 |
commit | 91714a52e91cddba5a16c73cf5765d1f47f7856c (patch) | |
tree | 981d4ff0f715d24ee2dc2ab58c610b7790e02eb6 /scripts/lib/recipetool | |
parent | 2c4c78a6a9970533f3352f1067b2263f45098493 (diff) | |
download | openembedded-core-91714a52e91cddba5a16c73cf5765d1f47f7856c.tar.gz openembedded-core-91714a52e91cddba5a16c73cf5765d1f47f7856c.tar.bz2 openembedded-core-91714a52e91cddba5a16c73cf5765d1f47f7856c.zip |
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 <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/recipetool')
-rw-r--r-- | scripts/lib/recipetool/create.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 == '-': |