]> gitweb.michael.orlitzky.com - mjo-overlay.git/blob - net-mail/mailman/files/mailman-2.1.14_rc1-directory-check.patch
a3c26ede877ae281666d9b05a31eca414db0bd7d
[mjo-overlay.git] / net-mail / mailman / files / mailman-2.1.14_rc1-directory-check.patch
1 --- mailman-2.1.14rc1/bin/update 2010-09-09 18:51:09.000000000 +0200
2 +++ mailman-2.1.14rc1-1/bin/update 2010-09-14 01:02:09.000000000 +0200
3 @@ -35,6 +35,7 @@
4 """
5
6 import os
7 +import stat
8 import sys
9 import time
10 import errno
11 @@ -428,7 +429,7 @@
12 # Now update for the Mailman 2.1.5 qfile format. For every filebase in
13 # the qfiles/* directories that has both a .pck and a .db file, pull the
14 # data out and re-queue them.
15 - for dirname in os.listdir(mm_cfg.QUEUE_DIR):
16 + for dirname in [x for x in os.listdir(mm_cfg.QUEUE_DIR) if stat.S_ISDIR(os.stat(os.path.join(mm_cfg.QUEUE_DIR,x)).st_mode)]:
17 dirpath = os.path.join(mm_cfg.QUEUE_DIR, dirname)
18 if dirpath == mm_cfg.BADQUEUE_DIR:
19 # The files in qfiles/bad can't possibly be pickles