From a4fca1d52386924f25a18f6c4ed94e1a7bbac8e4 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Tue, 28 Apr 2015 12:25:30 +0100 Subject: 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 Signed-off-by: Richard Purdie --- scripts/lib/recipetool/create.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/lib/recipetool/create.py') diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index 1d5bfd995c..0c413688c0 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py @@ -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) -- cgit v1.2.3-54-g00ecf