diff options
Diffstat (limited to 'calm/uploads.py')
-rw-r--r-- | calm/uploads.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/calm/uploads.py b/calm/uploads.py index 376753d..9998e46 100644 --- a/calm/uploads.py +++ b/calm/uploads.py @@ -31,8 +31,8 @@ import os import logging import re import shutil -import tarfile import time +import xtarfile from .movelist import MoveList from . import common_constants @@ -238,8 +238,9 @@ def scan(m, all_packages, arch, args): try: # we need to extract all of an archive contents to validate # it - with tarfile.open(fn) as a: + with xtarfile.open(fn, mode='r') as a: a.getmembers() + except Exception as e: valid = False logging.error("exception %s while reading %s" % (type(e).__name__, fn)) |