diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-02-11 14:13:32 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-11 12:33:03 +0000 |
commit | 86f3464b47ec2e2b3a3c9e9932edc864f3ceaf99 (patch) | |
tree | 6d8bb6d16032b9467d545eee70fcafb38eddb3a3 /scripts/lib | |
parent | fa50153bc2c7949a6251e9d5e9b6e97869f07482 (diff) | |
download | poky-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.py | 2 |
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') |