summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/standard.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/devtool/standard.py')
-rw-r--r--scripts/lib/devtool/standard.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 645a61f25b..f2ba69976f 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -65,6 +65,10 @@ def add(args, config, basepath, workspace):
65 elif os.path.isdir(args.recipename): 65 elif os.path.isdir(args.recipename):
66 logger.warn('Ambiguous argument %s - assuming you mean it to be the recipe name') 66 logger.warn('Ambiguous argument %s - assuming you mean it to be the recipe name')
67 67
68 if args.srctree and os.path.isfile(args.srctree):
69 args.fetchuri = 'file://' + os.path.abspath(args.srctree)
70 args.srctree = ''
71
68 if args.fetch: 72 if args.fetch:
69 if args.fetchuri: 73 if args.fetchuri:
70 raise DevtoolError('URI specified as positional argument as well as -f/--fetch') 74 raise DevtoolError('URI specified as positional argument as well as -f/--fetch')