mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
fa50153bc2
commit
86f3464b47
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user