~mailman-coders/mailman/2.1

« back to all changes in this revision

Viewing changes to bin/update

  • Committer: Mark Sapiro
  • Date: 2008-06-06 18:13:09 UTC
  • mfrom: (1073.1.2 cull_bad_shunt)
  • Revision ID: mark@msapiro.net-20080606181309-sub898y3deolqu6w
Merged the cull_bad_shunt branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
442
442
            for filename in os.listdir(dirpath):
443
443
                filepath = os.path.join(dirpath, filename)
444
444
                filebase, ext = os.path.splitext(filepath)
 
445
                # A bug in Mailman 2.1.9 left .bak files behind in some
 
446
                # circumstances. It should be safe to remove them.
 
447
                if ext == '.bak':
 
448
                    os.remove(filepath)
445
449
                # Handle the .db metadata files as part of the handling of the
446
450
                # .pck or .msg message files.
447
451
                if ext not in ('.pck', '.msg'):