summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-02-11 14:13:32 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-11 12:33:03 +0000
commit86f3464b47ec2e2b3a3c9e9932edc864f3ceaf99 (patch)
tree6d8bb6d16032b9467d545eee70fcafb38eddb3a3 /scripts/lib
parentfa50153bc2c7949a6251e9d5e9b6e97869f07482 (diff)
downloadpoky-86f3464b47ec2e2b3a3c9e9932edc864f3ceaf99.tar.gz
devtool: add: fix adding from a local source directory
Fix a regression introduced in in OE-Core revision aedfc5a5db1c4b2b80a36147c9a13b31764d91dd where specifying a local source tree without specifying a name resulted in a traceback. Fixes [YOCTO #9086]. (From OE-Core rev: 67ea9d21f20a371a0ee443b46326018cb1527b62) 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/devtool/standard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index f1b2e12345..d12cc2e222 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -51,7 +51,7 @@ def add(args, config, basepath, workspace):
51 raise DevtoolError('URI specified as positional argument as well as -f/--fetch') 51 raise DevtoolError('URI specified as positional argument as well as -f/--fetch')
52 args.fetchuri = args.recipename 52 args.fetchuri = args.recipename
53 args.recipename = '' 53 args.recipename = ''
54 elif '://' in args.srctree: 54 elif args.srctree and '://' in args.srctree:
55 if not args.fetchuri: 55 if not args.fetchuri:
56 if args.fetch: 56 if args.fetch:
57 raise DevtoolError('URI specified as positional argument as well as -f/--fetch') 57 raise DevtoolError('URI specified as positional argument as well as -f/--fetch')