mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
recipetool: ensure git clone is standalone when extracting
If -x is specified and the specified URI was a git repository, we need to ensure that the resulting clone is a sandalone and not one that has pointers into the temporary fetch location or DL_DIR (since the git fetcher does a local clone with -s). Split out the code from devtool that already does this for "devtool modify -x" and reuse that. (From OE-Core rev: fc47e8652ef32e7399f57c80593df90dc52d8b84) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
24e5ad268c
commit
a4fca1d523
@@ -22,6 +22,7 @@ import glob
|
||||
import fnmatch
|
||||
import re
|
||||
import logging
|
||||
import scriptutils
|
||||
|
||||
logger = logging.getLogger('recipetool')
|
||||
|
||||
@@ -238,6 +239,7 @@ def create_recipe(args):
|
||||
outlines.extend(lines_after)
|
||||
|
||||
if args.extract_to:
|
||||
scriptutils.git_convert_standalone_clone(srctree)
|
||||
shutil.move(srctree, args.extract_to)
|
||||
logger.info('Source extracted to %s' % args.extract_to)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user