summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-11-23 15:01:22 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-08 20:18:55 +0000
commit25c7bf985e5e879891151136975ab4d45244a140 (patch)
tree05a6f1a608a3de3de0762ec6e0f46f638fc68657
parente313645b88a3348305534a6b50fcdd4a2274613c (diff)
downloadpoky-25c7bf985e5e879891151136975ab4d45244a140.tar.gz
bitbake: fetch: don't use shell=True when listing ar files
(Bitbake rev: ff2e5d435046886791551587a0988f21ddfe6e2a) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 3b8389e0a2..709372e16f 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1469,7 +1469,7 @@ class FetchMethod(object):
1469 else: 1469 else:
1470 cmd = 'rpm2cpio.sh %s | cpio -id' % (file) 1470 cmd = 'rpm2cpio.sh %s | cpio -id' % (file)
1471 elif file.endswith('.deb') or file.endswith('.ipk'): 1471 elif file.endswith('.deb') or file.endswith('.ipk'):
1472 output = subprocess.check_output('ar -t %s' % file, preexec_fn=subprocess_setup, shell=True) 1472 output = subprocess.check_output(['ar', '-t', file], preexec_fn=subprocess_setup)
1473 datafile = None 1473 datafile = None
1474 if output: 1474 if output:
1475 for line in output.decode().splitlines(): 1475 for line in output.decode().splitlines():