summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-02-19 16:39:50 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-23 17:35:27 +0000
commit5eb9ffe1e0c161e1128558495866aa4a68aab58a (patch)
tree956e645e681a7012bac4e16231abf42062884b4a /scripts/lib
parent3c2f5fd0c7894b3c0da494ffdd87bd13bf33c3e7 (diff)
downloadast2050-yocto-poky-5eb9ffe1e0c161e1128558495866aa4a68aab58a.zip
ast2050-yocto-poky-5eb9ffe1e0c161e1128558495866aa4a68aab58a.tar.gz
recipetool: fix regression caused by previous commit
Option was renamed in the setup code but not in the code that used it. (From OE-Core rev: 4b4f2d4f2869d6d5d564cc1b2d733f41ab5a3b9b) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/recipetool/create.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index 290fc13..ae599cb 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -110,8 +110,8 @@ def create_recipe(args):
if '://' in args.source:
# Fetch a URL
srcuri = args.source
- if args.externalsrc:
- srctree = args.externalsrc
+ if args.extract_to:
+ srctree = args.extract_to
else:
tempsrc = tempfile.mkdtemp(prefix='recipetool-')
srctree = tempsrc
@@ -126,8 +126,8 @@ def create_recipe(args):
srctree = os.path.join(srctree, srcsubdir)
else:
# Assume we're pointing to an existing source tree
- if args.externalsrc:
- logger.error('externalsrc cannot be specified if source is a directory')
+ if args.extract_to:
+ logger.error('--extract-to cannot be specified if source is a directory')
sys.exit(1)
if not os.path.isdir(args.source):
logger.error('Invalid source directory %s' % args.source)
OpenPOWER on IntegriCloud