aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2008-04-27 10:52:35 -0700
committerMark Sapiro <mark@msapiro.net>2008-04-27 10:52:35 -0700
commit17b4a1bc0a85320f46357cffde8232220a113e11 (patch)
tree68bc94f304cd3c3d4dae3cfe3f995a7576aa8786
parent5a4921014586d38fe3a48544734c48e4d3515b20 (diff)
downloadmailman2-17b4a1bc0a85320f46357cffde8232220a113e11.tar.gz
mailman2-17b4a1bc0a85320f46357cffde8232220a113e11.tar.xz
mailman2-17b4a1bc0a85320f46357cffde8232220a113e11.zip
Changed bin/update to remove .bak qfiles.
-rwxr-xr-xbin/update6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/update b/bin/update
index 23429508..ea766a32 100755
--- a/bin/update
+++ b/bin/update
@@ -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'):