diff options
author | Jauhien Piatlicki (jauhien) <piatlicki@gmail.com> | 2013-07-19 16:44:01 +0200 |
---|---|---|
committer | Jauhien Piatlicki (jauhien) <piatlicki@gmail.com> | 2013-07-19 16:44:01 +0200 |
commit | 9b01f27448621d0b90f41664664bc95f7363a3a9 (patch) | |
tree | 369961488c45428b69885d067fcf9fc773839411 /g_sorcery/fileutils.py | |
parent | gs_ctan/ctan_db: homepage (diff) | |
download | g-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.py | 2 |
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 |