summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2012-09-26 17:07:57 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-27 16:45:27 +0100
commitfaaa0653c2a24fcd419d8a79c33086611ea36b89 (patch)
treefdcd2c7b53c06cb6eb427c082926dce271de0729 /bitbake
parent5c1345c75d248d7e18cb1c3be1e70f42c3c3f701 (diff)
downloadpoky-faaa0653c2a24fcd419d8a79c33086611ea36b89.tar.gz
bitbake: fetch2: add "-d" option to cpio
Add "-d" option to cpio since it is useful: -d --make-directories Create leading directories where needed. [YOCTO #3137] (Bitbake rev: a78f9ded7896432b107f34c0bb608b389fdb676a) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index a713418317..ea5287406d 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -950,11 +950,11 @@ class FetchMethod(object):
950 elif file.endswith('.rpm') or file.endswith('.srpm'): 950 elif file.endswith('.rpm') or file.endswith('.srpm'):
951 if 'extract' in urldata.parm: 951 if 'extract' in urldata.parm:
952 unpack_file = urldata.parm.get('extract') 952 unpack_file = urldata.parm.get('extract')
953 cmd = 'rpm2cpio.sh %s | cpio -i %s' % (file, unpack_file) 953 cmd = 'rpm2cpio.sh %s | cpio -id %s' % (file, unpack_file)
954 iterate = True 954 iterate = True
955 iterate_file = unpack_file 955 iterate_file = unpack_file
956 else: 956 else:
957 cmd = 'rpm2cpio.sh %s | cpio -i' % (file) 957 cmd = 'rpm2cpio.sh %s | cpio -id' % (file)
958 elif file.endswith('.deb') or file.endswith('.ipk'): 958 elif file.endswith('.deb') or file.endswith('.ipk'):
959 cmd = 'ar -p %s data.tar.gz | zcat | tar --no-same-owner -xpf -' % file 959 cmd = 'ar -p %s data.tar.gz | zcat | tar --no-same-owner -xpf -' % file
960 960