mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
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>
This commit is contained in:
parent
4369329b76
commit
84d48acb01
|
|
@ -283,6 +283,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 == '-':
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user