mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 06:32:12 +02:00
lib/oe/package_manager.py: Fix extract for ipk and deb
With the move to use lists instead of strings in subprocess calls, package extraction was broken for ipk and deb. This fixes this issue. (From OE-Core rev: 3e1d8e5c7ac3238eda85ee95dfef044bef2a6411) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f4fedefe49
commit
55aa669750
@@ -1545,11 +1545,15 @@ class OpkgDpkgPM(PackageManager):
|
||||
tmp_dir = tempfile.mkdtemp()
|
||||
current_dir = os.getcwd()
|
||||
os.chdir(tmp_dir)
|
||||
if self.d.getVar('IMAGE_PKGTYPE') == 'deb':
|
||||
data_tar = 'data.tar.xz'
|
||||
else:
|
||||
data_tar = 'data.tar.gz'
|
||||
|
||||
try:
|
||||
cmd = [ar_cmd, 'x', pkg_path]
|
||||
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
|
||||
cmd = [tar_cmd, 'xf', 'data.tar.*']
|
||||
cmd = [tar_cmd, 'xf', data_tar]
|
||||
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
|
||||
except subprocess.CalledProcessError as e:
|
||||
bb.utils.remove(tmp_dir, recurse=True)
|
||||
|
||||
Reference in New Issue
Block a user