diff options
Diffstat (limited to 'scripts/lib/devtool/standard.py')
-rw-r--r-- | scripts/lib/devtool/standard.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index baef23e467..abbc0cb8f5 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py | |||
@@ -47,13 +47,13 @@ def add(args, config, basepath, workspace): | |||
47 | # These are positional arguments, but because we're nice, allow | 47 | # These are positional arguments, but because we're nice, allow |
48 | # specifying e.g. source tree without name, or fetch URI without name or | 48 | # specifying e.g. source tree without name, or fetch URI without name or |
49 | # source tree (if we can detect that that is what the user meant) | 49 | # source tree (if we can detect that that is what the user meant) |
50 | if '://' in args.recipename: | 50 | if scriptutils.is_src_url(args.recipename): |
51 | if not args.fetchuri: | 51 | if not args.fetchuri: |
52 | if args.fetch: | 52 | if args.fetch: |
53 | raise DevtoolError('URI specified as positional argument as well as -f/--fetch') | 53 | raise DevtoolError('URI specified as positional argument as well as -f/--fetch') |
54 | args.fetchuri = args.recipename | 54 | args.fetchuri = args.recipename |
55 | args.recipename = '' | 55 | args.recipename = '' |
56 | elif args.srctree and '://' in args.srctree: | 56 | elif scriptutils.is_src_url(args.srctree): |
57 | if not args.fetchuri: | 57 | if not args.fetchuri: |
58 | if args.fetch: | 58 | if args.fetch: |
59 | raise DevtoolError('URI specified as positional argument as well as -f/--fetch') | 59 | raise DevtoolError('URI specified as positional argument as well as -f/--fetch') |