diff options
author | Philip Lorenz <philip.lorenz@bmw.de> | 2024-05-16 09:24:37 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-28 09:38:23 +0100 |
commit | b2a59134dcbf0a8fffa76076bc578ecd5791c968 (patch) | |
tree | 1d70383500e70b8472766ba906ba7392362698be /meta/lib | |
parent | e414b34e5d74c5898e3877fe1e6d937af778e627 (diff) | |
download | poky-b2a59134dcbf0a8fffa76076bc578ecd5791c968.tar.gz |
ipk: Fix clean up of extracted IPK payload
It turns out that the IPK payload tarball was actually cleaned up in the
concrete package manager implementation (most likely because at some
point Debian and IPK packages used different compression algorithms).
Globbing removes this ambiguity so move the removal of the payload into
the common extract method.
(From OE-Core rev: 1e2b02a54f482159e21902eeb997b21e00e9588e)
Signed-off-by: Philip Lorenz <philip.lorenz@bmw.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/package_manager/ipk/__init__.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/lib/oe/package_manager/ipk/__init__.py b/meta/lib/oe/package_manager/ipk/__init__.py index 0f0038d00d..47e72cc7a6 100644 --- a/meta/lib/oe/package_manager/ipk/__init__.py +++ b/meta/lib/oe/package_manager/ipk/__init__.py | |||
@@ -159,6 +159,7 @@ class OpkgDpkgPM(PackageManager): | |||
159 | bb.note("Extracted %s to %s" % (pkg_path, tmp_dir)) | 159 | bb.note("Extracted %s to %s" % (pkg_path, tmp_dir)) |
160 | bb.utils.remove(os.path.join(tmp_dir, "debian-binary")) | 160 | bb.utils.remove(os.path.join(tmp_dir, "debian-binary")) |
161 | bb.utils.remove(os.path.join(tmp_dir, "control.tar.gz")) | 161 | bb.utils.remove(os.path.join(tmp_dir, "control.tar.gz")) |
162 | bb.utils.remove(os.path.join(tmp_dir, data_tar)) | ||
162 | os.chdir(current_dir) | 163 | os.chdir(current_dir) |
163 | 164 | ||
164 | return tmp_dir | 165 | return tmp_dir |
@@ -511,7 +512,4 @@ class OpkgPM(OpkgDpkgPM): | |||
511 | bb.fatal("Unable to get information for package '%s' while " | 512 | bb.fatal("Unable to get information for package '%s' while " |
512 | "trying to extract the package." % pkg) | 513 | "trying to extract the package." % pkg) |
513 | 514 | ||
514 | tmp_dir = super(OpkgPM, self).extract(pkg, pkg_info) | 515 | return super(OpkgPM, self).extract(pkg, pkg_info) |
515 | bb.utils.remove(os.path.join(tmp_dir, "data.tar.zst")) | ||
516 | |||
517 | return tmp_dir | ||