summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 12ebce2687..00fafb68c1 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -938,7 +938,7 @@ class FetchMethod(object):
938 if dos: 938 if dos:
939 cmd = '%s -a' % cmd 939 cmd = '%s -a' % cmd
940 cmd = "%s '%s'" % (cmd, file) 940 cmd = "%s '%s'" % (cmd, file)
941 elif file.endswith('.src.rpm') or file.endswith('.srpm'): 941 elif file.endswith('.rpm') or file.endswith('.srpm'):
942 if 'extract' in urldata.parm: 942 if 'extract' in urldata.parm:
943 unpack_file = urldata.parm.get('extract') 943 unpack_file = urldata.parm.get('extract')
944 cmd = 'rpm2cpio.sh %s | cpio -i %s' % (file, unpack_file) 944 cmd = 'rpm2cpio.sh %s | cpio -i %s' % (file, unpack_file)
@@ -946,6 +946,8 @@ class FetchMethod(object):
946 iterate_file = unpack_file 946 iterate_file = unpack_file
947 else: 947 else:
948 cmd = 'rpm2cpio.sh %s | cpio -i' % (file) 948 cmd = 'rpm2cpio.sh %s | cpio -i' % (file)
949 elif file.endswith('.deb') or file.endswith('.ipk'):
950 cmd = 'ar -p %s data.tar.gz | zcat | tar --no-same-owner -xpf -' % file
949 951
950 if not unpack or not cmd: 952 if not unpack or not cmd:
951 # If file == dest, then avoid any copies, as we already put the file into dest! 953 # If file == dest, then avoid any copies, as we already put the file into dest!