summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-03-21 18:14:05 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-25 10:29:13 +0000
commit0523378082e9a3857808bdb2a8a5df05aade8b20 (patch)
treed061c0376b57be52ac15dcde0c0f03ac26bfb617 /scripts/lib
parent11c1d30152ad2c6461d8c3638add4d97b90e8c46 (diff)
downloadpoky-0523378082e9a3857808bdb2a8a5df05aade8b20.tar.gz
devtool: add: create git repository if URL specified as positional argument
When we add from a fetched URL we are supposed to turn the resulting source tree into a git repository (if it isn't already one). However, we were using the older deprecated option name here instead of the positional argument, so "devtool add -f <url>" resulted in the repo being created but "devtool add <url>" didn't, which was wrong. Also update the oe-selftest tests to check that this worked. (From OE-Core rev: a7b6b1f8cc1c096724f794ac9dee312b0f771f66) 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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 9ac2ad57a8..f3f3e98d2f 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -205,7 +205,7 @@ def add(args, config, basepath, workspace):
205 for fn in os.listdir(recipedir): 205 for fn in os.listdir(recipedir):
206 _add_md5(config, recipename, os.path.join(recipedir, fn)) 206 _add_md5(config, recipename, os.path.join(recipedir, fn))
207 207
208 if args.fetch and not args.no_git: 208 if args.fetchuri and not args.no_git:
209 setup_git_repo(srctree, args.version, 'devtool') 209 setup_git_repo(srctree, args.version, 'devtool')
210 210
211 initial_rev = None 211 initial_rev = None