From f6e3d57173604dab7228c830e84415ead02e169b Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 26 Jul 2011 04:55:59 +0200 Subject: Tests are green for opendocument format --- lib/archive.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/archive.py') diff --git a/lib/archive.py b/lib/archive.py index 8a8f7f4..f22af39 100644 --- a/lib/archive.py +++ b/lib/archive.py @@ -69,10 +69,13 @@ class ZipStripper(GenericArchiveStripper): return False except: #best solution I have found - logging.error('%s is not supported' % item.filename) - _, ext = os.path.splitext(name) + logging.info('%s\'s fileformat is not supported, or is a \ +harmless format' % item.filename) + base, ext = os.path.splitext(name) + bname = os.path.basename(item.filename) if ext not in parser.NOMETA: - return False + if bname != 'mimetype': + return False mat.secure_remove(name) zipin.close() return True -- cgit v1.3