[yocto] How to Customize do_fetch to extract two files from tarball
rajan pathak
rajanpatha34 at gmail.com
Sat Dec 7 02:43:58 PST 2013
I wanted to extract couple of files from tarball which is located SVN
repo,This is a huge
repo and it takes almost hour to get fetched .
I don't want to waste that much of time only to get two files from that
tarball repo
I have got with me python code that will do svn cat but not sure how to put
it in my recipe file.
import tarfilefrom subprocess import Popen, PIPE# Capture the tar file
from subversion
p = Popen(["svn", "cat", "svn+ssh://url/some.tar"], stdout=PIPE)
tmp='/home/me/tempfile.tar'
open(tmp, 'wb').write(p.stdout.read())# Extract the file we want,
saving to current directory
tarfile.open(tmp).extract('dir1/fname.ext', path='dir2'
Can any body point me out how to merger this code in recipe file.
Thanks
Rajan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20131207/65e12c3a/attachment.html>
More information about the yocto
mailing list