do_unpack: shift some responsibility around, clean things up
authorChris Larson <chris_larson@mentor.com>
Wed, 17 Mar 2010 15:05:40 +0000 (08:05 -0700)
committerChris Larson <chris_larson@mentor.com>
Fri, 23 Apr 2010 21:20:41 +0000 (14:20 -0700)
commit5c8bfd6873939024d57278343035cfab0257bdb3
tree6c4fcea025d8f27da70cf0e06513384e4705a09c
parent241a98e1771cdf4037b4534be67dcdba01e066d5
do_unpack: shift some responsibility around, clean things up

- Move the unpacking message printing into do_unpack
- Move the destination directory determination into do_unpack
- Use subprocess's ability to pass in PATH and cwd rather than mangling the cmd
- Use shutil.copy2/copytree for ordinary file "unpack"
- Use the existing urldata from bb.fetch.init rather than re-decodeurl'ing the urls
- Only display the unpack destdir to the user when debugging is enabled, as we
  all know they unpack into WORKDIR

Signed-off-by: Chris Larson <chris_larson@mentor.com>
classes/base.bbclass