summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/package_manager.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index f26f597d03..955914bb48 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -1118,10 +1118,7 @@ class OpkgDpkgPM(PackageManager):
1118 tmp_dir = tempfile.mkdtemp() 1118 tmp_dir = tempfile.mkdtemp()
1119 current_dir = os.getcwd() 1119 current_dir = os.getcwd()
1120 os.chdir(tmp_dir) 1120 os.chdir(tmp_dir)
1121 if self.d.getVar('IMAGE_PKGTYPE') == 'deb': 1121 data_tar = 'data.tar.xz'
1122 data_tar = 'data.tar.xz'
1123 else:
1124 data_tar = 'data.tar.gz'
1125 1122
1126 try: 1123 try:
1127 cmd = [ar_cmd, 'x', pkg_path] 1124 cmd = [ar_cmd, 'x', pkg_path]
@@ -1530,7 +1527,7 @@ class OpkgPM(OpkgDpkgPM):
1530 "trying to extract the package." % pkg) 1527 "trying to extract the package." % pkg)
1531 1528
1532 tmp_dir = super(OpkgPM, self).extract(pkg, pkg_info) 1529 tmp_dir = super(OpkgPM, self).extract(pkg, pkg_info)
1533 bb.utils.remove(os.path.join(tmp_dir, "data.tar.gz")) 1530 bb.utils.remove(os.path.join(tmp_dir, "data.tar.xz"))
1534 1531
1535 return tmp_dir 1532 return tmp_dir
1536 1533