Add support tar.lzma to unpack.

netsetup
Mike Hiretsky 14 years ago
parent 828b292624
commit 97edeff6bf

@ -922,6 +922,8 @@ class ArchiveDistributive(Distributive):
return "gzip"
elif "7-zip archive data" in mes:
return "7z"
elif file and file.endswith(".tar.lzma"):
return "7z"
else:
return None
@ -946,7 +948,8 @@ class ArchiveDistributive(Distributive):
res,mes = self.runOsCommand("tar xf %s -C %s/"%
(archfile,directory))
else:
raise DistributiveError(_("Unknown archive type by '%s'")%file)
raise DistributiveError(_("Unknown archive type by '%s'")%
archfile)
if res != 0:
raise DistributiveError(_("Error during unpacking\n%s")%mes)

Loading…
Cancel
Save