diff options
author | Mark Sapiro <mark@msapiro.net> | 2008-04-27 10:52:35 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2008-04-27 10:52:35 -0700 |
commit | 17b4a1bc0a85320f46357cffde8232220a113e11 (patch) | |
tree | 68bc94f304cd3c3d4dae3cfe3f995a7576aa8786 /bin/update | |
parent | 5a4921014586d38fe3a48544734c48e4d3515b20 (diff) | |
download | mailman2-17b4a1bc0a85320f46357cffde8232220a113e11.tar.gz mailman2-17b4a1bc0a85320f46357cffde8232220a113e11.tar.xz mailman2-17b4a1bc0a85320f46357cffde8232220a113e11.zip |
Changed bin/update to remove .bak qfiles.
Diffstat (limited to 'bin/update')
-rwxr-xr-x | bin/update | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,6 +1,6 @@ #! @PYTHON@ # -# Copyright (C) 1998-2005 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2008 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -435,6 +435,10 @@ def update_qfiles(): for filename in os.listdir(dirpath): filepath = os.path.join(dirpath, filename) filebase, ext = os.path.splitext(filepath) + # A bug in Mailman 2.1.9 left .bak files behind in some + # circumstances. It should be safe to remove them. + if ext == '.bak': + os.remove(filepath) # Handle the .db metadata files as part of the handling of the # .pck or .msg message files. if ext not in ('.pck', '.msg'): |