package_manager.py: Use data.tar.xz for ipkg too
PATCH 1/1 package_manager.py: Use data.tar.xz for ipkg too
Commit b95b6ba1a2959e2294a8848fa35f20163388eb06 changed package_ipk.bbclass to xz when building packages. This updates OpkgDpkgPM.extract() accordingly.
Signed-off-by Angus Lees <[email protected]>
---
This should also be backported to sumo.
From a quick grep, I note recipes-devtools/build-compare probably also needs updating. I have not done so in this patch, because I don't (knowingly) use that tool and have no idea how to test it.
meta/lib/oe/package_manager.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
meta/lib/oe/package_manager.py +2 -5
@@ -1030,10 +1030,7 @@ 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' + data_tar = 'data.tar.xz' try: cmd = [ar_cmd, 'x', pkg_path]
@@ -1432,7 +1429,7 @@ class OpkgPM(OpkgDpkgPM): "trying to extract the package." % pkg) tmp_dir = super(OpkgPM, self).extract(pkg, pkg_info) - bb.utils.remove(os.path.join(tmp_dir, "data.tar.gz")) + bb.utils.remove(os.path.join(tmp_dir, "data.tar.xz")) return tmp_dir
Signature · 1 line
2.11.0