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>
Thu, 10 Feb 2011 23:36:40 +0000 (23:36 +0000)
commitd6fac93d81c822de09c660269430b1aabb5594ee
tree80556f4a85c51b0b25eb86d0eb56ba04831fd01f
parentc7c143cde76cc17fc4830e18e21c89f66cc02af0
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)

(From Poky rev: 84ff79413a3b56f287f42b8ca1dd2ab194337c42)

Signed-off-by: Yu Ke <ke.yu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/fetch2/__init__.py