From 6dac5f887cffe08c8976515442a902c6d67b62d7 Mon Sep 17 00:00:00 2001 From: gryf Date: Mon, 14 Apr 2008 19:15:42 +0000 Subject: [PATCH] * Another bugfix in extract tar archive for Python 2.4. Damn. --- src/models/m_main.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/models/m_main.py b/src/models/m_main.py index cc1b6ba..ecc0a07 100644 --- a/src/models/m_main.py +++ b/src/models/m_main.py @@ -303,11 +303,10 @@ class MainModel(ModelMT): os.chown(tarinfo, '.') os.utime(tarinfo, '.') os.chmod(tarinfo, '.') - except ExtractError, e: - if tar.errorlevel > 1: - raise - else: - tar._dbg(1, "tarfile: %s" % e) + except: + if __debug__: + print "m_main.py: open(): setting corrext owner, mtime etc" + pass tar.close() self.__connect_to_db()