diff options
Diffstat (limited to 'feed')
-rwxr-xr-x | feed/sse_tar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/feed/sse_tar.py b/feed/sse_tar.py index 62a48d1..be82ea2 100755 --- a/feed/sse_tar.py +++ b/feed/sse_tar.py @@ -5,7 +5,7 @@ import sse_feed, sse_db from sse_config import * from sse_defs import * -import tarfile, zipfile, sys, os, time, zlib, tempfile +import tarfile, zipfile, sys, os, time, zlib, tempfile, struct from md5 import new as message_digest tar_suffixes = [ ".tar.gz", ".tar.bz2", ".tgz", ".tbz2", ".tar" ] @@ -148,7 +148,7 @@ def uncompress_archive(archive, root, package_id, meta = {}): n = uncompress_tar(archive, root, package_id, meta) except tarfile.TarError: n = uncompress_zip(archive, root, package_id, meta) - except (zipfile.error, zlib.error, EOFError, IOError), e: + except (zipfile.error, zlib.error, EOFError, IOError, struct.error), e: print "WARNING: Broken archive: %s" % e return n |