aboutsummaryrefslogtreecommitdiffstats
path: root/lib/oe/unpack.py
AgeCommit message (Collapse)Author
2010-09-06lib/oe/unpack.py: fix uncompressing .gz .bz2 or .xzEric Bénard
* Actually, the uncompressed file is written into the source path instead of the destination path. * By also removing the source path, this patch should fix this problem. * An other fix could be to not uncompress to stdout but let gunzip|bunzip2| xz uncompress directly to the file. Signed-off-by: Eric Bénard <eric@eukrea.com> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Acked-by: Chris Larson <chris_larson@mentor.com>
2010-09-02do_unpack, do_patch: shift some responsibility around, clean things upChris Larson
- Consolidate 'is this file a patch' logic - Move unpack functions from classes into oe.unpack - 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 - Make handling of globs in url paths explicit rather than implicit, calling oe_unpack on each one, so showing an unpacking message to the user for each globbed file, rather than the entirety Signed-off-by: Chris Larson <chris_larson@mentor.com> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Tom Rini <tom_rini@mentor.com>