Explorar el Código

bitbake: layerindex: don't use shell=True when cloning

(Bitbake rev: b94d4728b35350b812838cdbc7afada776ad5122)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton hace 7 años
padre
commit
e313645b88
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bitbake/lib/bblayers/layerindex.py

+ 1 - 1
bitbake/lib/bblayers/layerindex.py

@@ -28,7 +28,7 @@ class LayerIndexPlugin(ActionPlugin):
         layerdir = os.path.join(repodir, subdir)
         if not os.path.exists(repodir):
             if fetch_layer:
-                result = subprocess.call('git clone %s %s' % (url, repodir), shell = True)
+                result = subprocess.call(['git', 'clone', url, repodir])
                 if result:
                     logger.error("Failed to download %s" % url)
                     return None, None, None