mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
5c1345c75d
commit
faaa0653c2
@@ -950,11 +950,11 @@ class FetchMethod(object):
|
|||||||
elif file.endswith('.rpm') or file.endswith('.srpm'):
|
elif file.endswith('.rpm') or file.endswith('.srpm'):
|
||||||
if 'extract' in urldata.parm:
|
if 'extract' in urldata.parm:
|
||||||
unpack_file = urldata.parm.get('extract')
|
unpack_file = urldata.parm.get('extract')
|
||||||
cmd = 'rpm2cpio.sh %s | cpio -i %s' % (file, unpack_file)
|
cmd = 'rpm2cpio.sh %s | cpio -id %s' % (file, unpack_file)
|
||||||
iterate = True
|
iterate = True
|
||||||
iterate_file = unpack_file
|
iterate_file = unpack_file
|
||||||
else:
|
else:
|
||||||
cmd = 'rpm2cpio.sh %s | cpio -i' % (file)
|
cmd = 'rpm2cpio.sh %s | cpio -id' % (file)
|
||||||
elif file.endswith('.deb') or file.endswith('.ipk'):
|
elif file.endswith('.deb') or file.endswith('.ipk'):
|
||||||
cmd = 'ar -p %s data.tar.gz | zcat | tar --no-same-owner -xpf -' % file
|
cmd = 'ar -p %s data.tar.gz | zcat | tar --no-same-owner -xpf -' % file
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user