From 142f634cd8d9e38da509c662f375f98c5e3381ff Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Thu, 11 Oct 2012 03:07:33 +0200 Subject: [PATCH] Add support for .xz and .tar.xz files --- catarc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/catarc b/catarc index f5c9e60..30f1fb3 100644 --- a/catarc +++ b/catarc @@ -112,12 +112,18 @@ for item in file_list: elif item.endswith(".tar.bz2"): processor = "tar/bzip2" returncode = subprocess.call(['tar', '-Oxjf', item], stderr=stfu) + elif item.endswith(".tar.xz"): + processor = "tar/xz" + returncode = subprocess.call(['tar', '-OxJf', item], stderr=stfu) elif item.endswith(".gz"): processor = "gzip" returncode = subprocess.call(['gzip', '-cd', item], stderr=stfu) elif item.endswith(".bz2"): processor = "bzip2" returncode = subprocess.call(['bzip2', '-cd', item], stderr=stfu) + elif item.endswith(".xz"): + processor = "xz" + returncode = subprocess.call(['xz', '-cd', item], stderr=stfu) elif item.endswith(".zip"): processor = "unzip" returncode = subprocess.call(['unzip', '-p', item], stderr=stfu)