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:32:56 +0000 |
commit | 67ea9d21f20a371a0ee443b46326018cb1527b62 (patch) | |
tree | 57dcc6606356a1d894a18a1586ee0ffe3ad39e9d /scripts/lib | |
parent | 80a44e52609a89d9ffe816181ae193af491c06ac (diff) | |
download | openembedded-core-67ea9d21f20a371a0ee443b46326018cb1527b62.tar.gz openembedded-core-67ea9d21f20a371a0ee443b46326018cb1527b62.tar.bz2 openembedded-core-67ea9d21f20a371a0ee443b46326018cb1527b62.zip |
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].
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): raise DevtoolError('URI specified as positional argument as well as -f/--fetch') args.fetchuri = args.recipename args.recipename = '' - elif '://' in args.srctree: + elif args.srctree and '://' in args.srctree: if not args.fetchuri: if args.fetch: raise DevtoolError('URI specified as positional argument as well as -f/--fetch') |