All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] fetch2: add "-d" option to cpio
@ 2012-09-26  9:07 Robert Yang
  2012-09-26  9:07 ` [PATCH 1/1] " Robert Yang
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Yang @ 2012-09-26  9:07 UTC (permalink / raw)
  To: bitbake-devel; +Cc: Zhenfeng.Zhao

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(-)




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] fetch2: add "-d" option to cpio
  2012-09-26  9:07 [PATCH 0/1] fetch2: add "-d" option to cpio Robert Yang
@ 2012-09-26  9:07 ` Robert Yang
  2012-09-27 15:43   ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Yang @ 2012-09-26  9:07 UTC (permalink / raw)
  To: bitbake-devel; +Cc: Zhenfeng.Zhao

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

[YOCTO #3137]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 bitbake/lib/bb/fetch2/__init__.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index a713418..ea52874 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -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
 
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] fetch2: add "-d" option to cpio
  2012-09-26  9:07 ` [PATCH 1/1] " Robert Yang
@ 2012-09-27 15:43   ` Richard Purdie
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2012-09-27 15:43 UTC (permalink / raw)
  To: Robert Yang; +Cc: bitbake-devel, Zhenfeng.Zhao

On Wed, 2012-09-26 at 17:07 +0800, Robert Yang wrote:
> Add "-d" option to cpio since it is useful:
>   -d
>   --make-directories
>   Create leading directories where needed.
> 
> [YOCTO #3137]
> 
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
>  bitbake/lib/bb/fetch2/__init__.py |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

Merged to master, thanks.

Richard




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-09-27 15:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-26  9:07 [PATCH 0/1] fetch2: add "-d" option to cpio Robert Yang
2012-09-26  9:07 ` [PATCH 1/1] " Robert Yang
2012-09-27 15:43   ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.