diff options
author | Ross Burton <ross.burton@intel.com> | 2018-11-23 15:01:22 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-25 22:27:46 +0000 |
commit | 4e75f5cc6b50d45d2b782f8f0220dade12e02473 (patch) | |
tree | 909725148ea98fb19db1a8f5624523724f613e2a /bitbake | |
parent | d3dcc4f92e0fdf1e044bbd71741b77581f64ce6d (diff) | |
download | poky-4e75f5cc6b50d45d2b782f8f0220dade12e02473.tar.gz |
bitbake: fetch: don't use shell=True when listing ar files
(Bitbake rev: d150e50355444b0a67cad4d6a100d9bf6fadb2ae)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 72d6092deb..e1282da45f 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -1457,7 +1457,7 @@ class FetchMethod(object): | |||
1457 | else: | 1457 | else: |
1458 | cmd = 'rpm2cpio.sh %s | cpio -id' % (file) | 1458 | cmd = 'rpm2cpio.sh %s | cpio -id' % (file) |
1459 | elif file.endswith('.deb') or file.endswith('.ipk'): | 1459 | elif file.endswith('.deb') or file.endswith('.ipk'): |
1460 | output = subprocess.check_output('ar -t %s' % file, preexec_fn=subprocess_setup, shell=True) | 1460 | output = subprocess.check_output(['ar', '-t', file], preexec_fn=subprocess_setup) |
1461 | datafile = None | 1461 | datafile = None |
1462 | if output: | 1462 | if output: |
1463 | for line in output.decode().splitlines(): | 1463 | for line in output.decode().splitlines(): |