Sun Oct 5 15:48:31 UTC 2008 Alberto Bertogli <albertito@gmail.com>
* Ignore broken multidir directories
When a multidir directory is not really a directory or a valid symlink to one,
we want to skip it instead of exploding.
This patch fixes that by doing a simple sanity check while processing the
configured multidirs.
Thanks to Ralph Giles <giles@ghostscript.com> for the report and the patch.
diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi
--- old-darcsweb/darcsweb.cgi 2013-07-18 20:21:09.000000000 +0000
+++ new-darcsweb/darcsweb.cgi 2013-07-18 20:21:09.000000000 +0000
@@ -2275,6 +2275,9 @@
if 'multidir' not in dir(c):
continue
+ if not os.path.isdir(c.multidir):
+ continue
+
if 'exclude' not in dir(c):
c.exclude = []