summaryrefslogtreecommitdiff
path: root/Mailman/MailList.py
diff options
context:
space:
mode:
authorbwarsaw2000-11-14 04:44:01 +0000
committerbwarsaw2000-11-14 04:44:01 +0000
commit1efc5eb1908baebe5e14ff9e558d8f510227118f (patch)
treef944605ae7bbf413dcc9d2b750befcd598933f60 /Mailman/MailList.py
parent1ae3af3dcc8220207500c41876a349be2e66caee (diff)
downloadmailman-1efc5eb1908baebe5e14ff9e558d8f510227118f.tar.gz
mailman-1efc5eb1908baebe5e14ff9e558d8f510227118f.tar.zst
mailman-1efc5eb1908baebe5e14ff9e558d8f510227118f.zip
CheckVersion(): Do not call versions.Update, and do not set the
data_version attribute, unless the list is locked.
Diffstat (limited to 'Mailman/MailList.py')
-rw-r--r--Mailman/MailList.py7
1 files 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()