aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2013-07-19 16:44:01 +0200
committerJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2013-07-19 16:44:01 +0200
commit9b01f27448621d0b90f41664664bc95f7363a3a9 (patch)
tree369961488c45428b69885d067fcf9fc773839411 /g_sorcery/fileutils.py
parentgs_ctan/ctan_db: homepage (diff)
downloadg-sorcery-9b01f27448621d0b90f41664664bc95f7363a3a9.tar.gz
g-sorcery-9b01f27448621d0b90f41664664bc95f7363a3a9.tar.bz2
g-sorcery-9b01f27448621d0b90f41664664bc95f7363a3a9.zip
g_sorcery/fileutils: support for .lzma
Diffstat (limited to 'g_sorcery/fileutils.py')
-rw-r--r--g_sorcery/fileutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g_sorcery/fileutils.py b/g_sorcery/fileutils.py
index 6ead317..92e1fb4 100644
--- a/g_sorcery/fileutils.py
+++ b/g_sorcery/fileutils.py
@@ -202,7 +202,7 @@ def load_remote_file(uri, parser, open_file = True, open_mode='r'):
del unpack_dir
else:
name, extention = os.path.splitext(f_name)
- if (extention == ".xz"):
+ if extention in [".xz", ".lzma"]:
if (os.system("xz -d " + f_name)):
raise DownloadingError("xz failed: " + f_name + " from " + uri)
f_name = name