summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-09-19 08:08:11 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-20 15:11:07 +0100
commit90f925cd41a372c839289b25f1f55490c77f4dd7 (patch)
treee2b613f51eb508af0714d101e1a5c261d8018d50 /scripts/lib/devtool
parent147774fc1ca9d1fd1afd5e2f255dccbfe464dabd (diff)
downloadpoky-90f925cd41a372c839289b25f1f55490c77f4dd7.tar.gz
recipetool: create: support git short form URLs
In keeping with making recipetool create / devtool add as easy to use as possible, users shouldn't have to know how to reformat git short form ssh URLs for consumption by BitBake's fetcher (for example user@git.example.com:repo.git should be expressed as git://user@git.example.com/repo.git;protocol=ssh ) - instead we should just take care of that automatically. Add some logic in the appropriate places to do that. (From OE-Core rev: 78c672a72f49c4b6cfd8c247efcc676b0ba1681a) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool')
-rw-r--r--scripts/lib/devtool/standard.py4
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')