Skip to contentSkip to conversation

fetch2: add "-d" option to cpio

PATCH Applied Robert Yang 2 participants 3 messages Sep 26, 2012 – Sep 27, 2012

lore
Share & tools
lore
#0 lore raw

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(-)
#1 lore raw

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]

---
 bitbake/lib/bb/fetch2/__init__.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
bitbake/lib/bb/fetch2/__init__.py +2 -2
index a713418..ea52874 100644
@@ -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
#2 lore raw
Quoted 11 lines · Robert Yang

Add "-d" option to cpio since it is useful:
-d
--make-directories
Create leading directories where needed.

[YOCTO #3137]

---
 bitbake/lib/bb/fetch2/__init__.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Merged to master, thanks.

Richard