]> git.e2factory.org Git - e2factory.git/commit
Add XZ support for sources
authorTobias Ulmer <tu@emlix.com>
Mon, 4 Mar 2013 19:04:02 +0000 (20:04 +0100)
committerTobias Ulmer <tu@emlix.com>
Mon, 4 Mar 2013 19:12:01 +0000 (20:12 +0100)
commit47175c9e7224b48add43038d86021e0b7a4f0ad0
tree43658f0c4bbffcfc44547f33ccbe95e971152a66
parent155142c3234200f7603ef4f5a060b1d1943d2f4e
Add XZ support for sources

This depends on a tar version in the chroot that supports xz archives.

The code has been restructured such that we don't play guessing games
based on the magic number in the file header anmore, and just go by
extension. Also, since all this extraction business is only relevant to
file sources, move it into the files plugin instead of cluttering e2lib.

To be clear, this change removes the questionable feature of detecting
that a .tar.bz2 tarball was really a .tar.gz and will instead return an
error message by he way of tar failing.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua
local/files.lua