Add Debian directory
[mspang/vmailman.git] / debian / patches / 65_handle_templates_directories.patch
1 Patch: 65_handle_templates_directories.patch
2 Author: Tollef Fog Heen <tfheen@debian.org>
3 Skip directories when updating
4 Index: bin/update
5 ===================================================================
6 --- bin/update.orig     2006-08-15 15:14:46.000000000 +0800
7 +++ bin/update  2006-08-15 15:14:50.000000000 +0800
8 @@ -127,7 +127,7 @@
9          try:
10              fp = open(os.path.join(mm_cfg.TEMPLATE_DIR, gtemplate))
11          except IOError, e:
12 -            if e.errno <> errno.ENOENT: raise
13 +            if not (e.errno in [errno.ENOENT, errno.EISDIR, ]): raise
14              # No global template
15              continue
16