summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-11-23 15:01:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-23 16:10:37 +0000
commit9c032d3dd9880c6b0e787dabf883657bfd09f83a (patch)
tree4497ef6127f8d17d9108571dc7f591c005a4a00a
parent6b84ac788321b24cfa2e6a883806eb3f3198254b (diff)
downloadpoky-9c032d3dd9880c6b0e787dabf883657bfd09f83a.tar.gz
bitbake: layerindex: don't use shell=True when cloning
(Bitbake rev: cb4aab7406dc8aefb646b37330b722cf9060ad73) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bblayers/layerindex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bblayers/layerindex.py b/bitbake/lib/bblayers/layerindex.py
index 9f02a9da2e..b2ff2268ea 100644
--- a/bitbake/lib/bblayers/layerindex.py
+++ b/bitbake/lib/bblayers/layerindex.py
@@ -28,7 +28,7 @@ class LayerIndexPlugin(ActionPlugin):
28 layerdir = os.path.join(repodir, subdir) 28 layerdir = os.path.join(repodir, subdir)
29 if not os.path.exists(repodir): 29 if not os.path.exists(repodir):
30 if fetch_layer: 30 if fetch_layer:
31 result = subprocess.call('git clone %s %s' % (url, repodir), shell = True) 31 result = subprocess.call(['git', 'clone', url, repodir])
32 if result: 32 if result:
33 logger.error("Failed to download %s" % url) 33 logger.error("Failed to download %s" % url)
34 return None, None, None 34 return None, None, None