fetch2: add "-d" option to cpio
cover fetch2: add "-d" option to cpio
The following changes since commit a8edf79fce381d0433f18bd38df6cd74008e5179:
bitbake: fetch2/git: Don't use deprecated API (2012-09-25 15:55:57 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib robert/cpio
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/cpio
Robert Yang (1):
fetch2: add "-d" option to cpio
bitbake/lib/bb/fetch2/__init__.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
PATCH 1/1 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]
Signed-off-by Robert Yang <[email protected]>
--- bitbake/lib/bb/fetch2/__init__.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
bitbake/lib/bb/fetch2/__init__.py +2 -2
@@ -950,11 +950,11 @@ class FetchMethod(object): elif file.endswith('.rpm') or file.endswith('.srpm'): if 'extract' in urldata.parm: 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_file = unpack_file else: - cmd = 'rpm2cpio.sh %s | cpio -i' % (file) + cmd = 'rpm2cpio.sh %s | cpio -id' % (file) elif file.endswith('.deb') or file.endswith('.ipk'): cmd = 'ar -p %s data.tar.gz | zcat | tar --no-same-owner -xpf -' % file
Signature · 1 line
1.7.1
Richard Purdie
AppliedQuoted 11 lines · Robert Yang
Add "-d" option to cpio since it is useful:
-d
--make-directories
Create leading directories where needed.[YOCTO #3137]
Signed-off-by Robert Yang <[email protected]>--- bitbake/lib/bb/fetch2/__init__.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Merged to master, thanks.
Richard