diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-04-28 12:25:30 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-01 17:08:10 +0100 |
commit | fc47e8652ef32e7399f57c80593df90dc52d8b84 (patch) | |
tree | f96a2ba90dede5ab247ab229d37e851cbfbe666e /scripts/lib/recipetool | |
parent | 0eeecce96a0aa757c2c4c4ac4d82e3bcbf0f982c (diff) | |
download | openembedded-core-fc47e8652ef32e7399f57c80593df90dc52d8b84.tar.gz openembedded-core-fc47e8652ef32e7399f57c80593df90dc52d8b84.tar.bz2 openembedded-core-fc47e8652ef32e7399f57c80593df90dc52d8b84.zip |
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.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
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 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) |