]> code.ossystems Code Review - openembedded-core.git/commit
bb.fetch2: revise the Fetch.unpack API
authorYu Ke <ke.yu@intel.com>
Tue, 18 Jan 2011 14:08:09 +0000 (22:08 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Jan 2011 12:25:46 +0000 (12:25 +0000)
commit84ff79413a3b56f287f42b8ca1dd2ab194337c42
tree36711f4fdaf3c08b8f90b6cbc5ea8d4fb1d7c00b
parentd8698b92ffcc2cbd29b57d3dc8e851d3d6c137f2
bb.fetch2: revise the Fetch.unpack API

change the unpack to use the urldata and rootdir parameter
- urldata is the FetchData instance
- rootdir is the dir to put the extracted source. the original unpack
  use current dir (os.getcwd) as destination dir, which is not flexible
  and error-prone (error will occur if caller not chdir to dest dir)

Signed-off-by: Yu Ke <ke.yu@intel.com>
bitbake/lib/bb/fetch2/__init__.py