~mailman-coders/mailman/2.1

« back to all changes in this revision

Viewing changes to bin/update

  • Committer: Mark Sapiro
  • Date: 2008-04-27 17:52:35 UTC
  • mto: This revision was merged to the branch mainline in revision 1086.
  • Revision ID: mark@msapiro.net-20080427175235-ld4mi9cf2aunq27b
Changed bin/update to remove .bak qfiles.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! @PYTHON@
2
2
#
3
 
# Copyright (C) 1998-2005 by the Free Software Foundation, Inc.
 
3
# Copyright (C) 1998-2008 by the Free Software Foundation, Inc.
4
4
#
5
5
# This program is free software; you can redistribute it and/or
6
6
# modify it under the terms of the GNU General Public License
435
435
            for filename in os.listdir(dirpath):
436
436
                filepath = os.path.join(dirpath, filename)
437
437
                filebase, ext = os.path.splitext(filepath)
 
438
                # A bug in Mailman 2.1.9 left .bak files behind in some
 
439
                # circumstances. It should be safe to remove them.
 
440
                if ext == '.bak':
 
441
                    os.remove(filepath)
438
442
                # Handle the .db metadata files as part of the handling of the
439
443
                # .pck or .msg message files.
440
444
                if ext not in ('.pck', '.msg'):