From 1efc5eb1908baebe5e14ff9e558d8f510227118f Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Tue, 14 Nov 2000 04:44:01 +0000 Subject: CheckVersion(): Do not call versions.Update, and do not set the data_version attribute, unless the list is locked. --- Mailman/MailList.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Mailman/MailList.py b/Mailman/MailList.py index d9f9ab93d..c495811e4 100644 --- a/Mailman/MailList.py +++ b/Mailman/MailList.py @@ -913,9 +913,10 @@ it will not be changed."""), else: self.InitVars() # Init any new variables, self.Load(check_version = 0) # then reload the file - from versions import Update - Update(self, stored_state) - self.data_version = mm_cfg.DATA_FILE_VERSION + if self.Locked(): + from versions import Update + Update(self, stored_state) + self.data_version = mm_cfg.DATA_FILE_VERSION if self.Locked(): self.Save() -- cgit v1.2.3-70-g09d2