diff options
| author | bwarsaw | 2000-11-14 04:44:01 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-11-14 04:44:01 +0000 |
| commit | 1efc5eb1908baebe5e14ff9e558d8f510227118f (patch) | |
| tree | f944605ae7bbf413dcc9d2b750befcd598933f60 /Mailman/MailList.py | |
| parent | 1ae3af3dcc8220207500c41876a349be2e66caee (diff) | |
| download | mailman-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.py | 7 |
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() |
