diff --git a/pym/cl_distr.py b/pym/cl_distr.py index f5d403b..d87061b 100644 --- a/pym/cl_distr.py +++ b/pym/cl_distr.py @@ -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)