diff options
| author | bwarsaw | 2001-07-26 05:30:11 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-07-26 05:30:11 +0000 |
| commit | 2cf4c7c9dca584e2e762e488b5721c5c70193ce8 (patch) | |
| tree | 7502f85ad0207e4d77e4541aebe66de71b8a8975 /bin | |
| parent | 717711c26186ba5b41689b02aaec0b57ab956c12 (diff) | |
| download | mailman-2cf4c7c9dca584e2e762e488b5721c5c70193ce8.tar.gz mailman-2cf4c7c9dca584e2e762e488b5721c5c70193ce8.tar.zst mailman-2cf4c7c9dca584e2e762e488b5721c5c70193ce8.zip | |
main(): Use ArchiveFileName() instead of private_archive_file_dir to
calculate the path to the .mbox file.
Also, change the order of unlocking so that its the reverse of the
locking order (i.e. unlock the archive lock first, then unlock the
list).
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/arch | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -90,8 +90,7 @@ def main(): except Errors.MMListError, e: usage(2, _('No such list "%(listname)s"\n%(e)s')) if mbox is None: - mbox = os.path.join(mlist.private_archive_file_dir, - listname + '.mbox') + mbox = mlist.ArchiveFileName() # lay claim to the archive's lock file. this is so no other post can # mess up the archive while we're glomming it. we pick a suitably @@ -120,10 +119,10 @@ def main(): archiver.close() fp.close() finally: - if mlist: - mlist.Unlock() if lock: lock.unlock() + if mlist: + mlist.Unlock() if __name__ == '__main__': |
