commit d0e4852be687401337c59f0e8a280d378ec0fd7f parent 340f54c8b0f1da150e84a42463aa4b8c7df876e6 Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 16 Sep 2008 21:39:02 +0000 Don't fail if SVN style symlink points to missing file Diffstat:
| M | chrome/content/zotero/xpcom/schema.js | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js @@ -302,7 +302,10 @@ Zotero.Schema = new function(){ while (entries.hasMoreElements()) { var file = entries.getNext(); file.QueryInterface(Components.interfaces.nsIFile); - if (!file.leafName.match(fileNameRE) || file.isDirectory()) { + // File might not exist in an SVN build with style symlinks + if (!file.exists() + || !file.leafName.match(fileNameRE) + || file.isDirectory()) { continue; } var fileModTime = Math.round(file.lastModifiedTime / 1000);