summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/package_manager/ipk/__init__.py6
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