summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-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 290fc1386b..ae599cbb70 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -110,8 +110,8 @@ def create_recipe(args):
110 if '://' in args.source: 110 if '://' in args.source:
111 # Fetch a URL 111 # Fetch a URL
112 srcuri = args.source 112 srcuri = args.source
113 if args.externalsrc: 113 if args.extract_to:
114 srctree = args.externalsrc 114 srctree = args.extract_to
115 else: 115 else:
116 tempsrc = tempfile.mkdtemp(prefix='recipetool-') 116 tempsrc = tempfile.mkdtemp(prefix='recipetool-')
117 srctree = tempsrc 117 srctree = tempsrc
@@ -126,8 +126,8 @@ def create_recipe(args):
126 srctree = os.path.join(srctree, srcsubdir) 126 srctree = os.path.join(srctree, srcsubdir)
127 else: 127 else:
128 # Assume we're pointing to an existing source tree 128 # Assume we're pointing to an existing source tree
129 if args.externalsrc: 129 if args.extract_to:
130 logger.error('externalsrc cannot be specified if source is a directory') 130 logger.error('--extract-to cannot be specified if source is a directory')
131 sys.exit(1) 131 sys.exit(1)
132 if not os.path.isdir(args.source): 132 if not os.path.isdir(args.source):
133 logger.error('Invalid source directory %s' % args.source) 133 logger.error('Invalid source directory %s' % args.source)