From 632daa248b4881d36605b2c6ec8b79842f200514 Mon Sep 17 00:00:00 2001 From: Neil Rashbrook Date: Mon, 24 Nov 2008 16:48:24 +0000 Subject: [PATCH] Bug 464080 Lock .jar files before opening them r=Pike CLOSED TREE --- config/MozZipFile.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/MozZipFile.py b/config/MozZipFile.py index 85f83d3e1fa6..a4b0becbb9ad 100644 --- a/config/MozZipFile.py +++ b/config/MozZipFile.py @@ -50,15 +50,15 @@ class ZipFile(zipfile.ZipFile): """ def __init__(self, file, mode="r", compression=zipfile.ZIP_STORED, lock = False): - zipfile.ZipFile.__init__(self, file, mode, compression) - self._remove = [] - self.end = self.fp.tell() - self.debug = 0 if lock: assert isinstance(file, basestring) self.lockfile = lockFile(file + '.lck') else: self.lockfile = None + zipfile.ZipFile.__init__(self, file, mode, compression) + self._remove = [] + self.end = self.fp.tell() + self.debug = 0 def writestr(self, zinfo_or_arcname, bytes): """Write contents into the archive.