From 7c0bc7035bf480a5878c97a20d1c83b1d4841172 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 17 Oct 2008 21:49:43 +0000 Subject: [PATCH] Some debug lines for key upgrade process testing --- chrome/content/zotero/xpcom/schema.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index d7ab21a5aa..e971b5d220 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -1791,13 +1791,18 @@ Zotero.Schema = new function(){ for each(var row in rows) { keys[row.itemID] = row.key; } + Zotero.debug(keys); if (storage37.exists()) { var entries = storage37.directoryEntries; while (entries.hasMoreElements()) { var file = entries.getNext(); file.QueryInterface(Components.interfaces.nsILocalFile); + Zotero.debug("Directory is " + file.leafName); var id = parseInt(file.leafName); + Zotero.debug(id); + Zotero.debug(file.isDirectory()); if (!file.isDirectory() || file.leafName != id) { + Zotero.debug("Skipping " + id); continue; } if (keys[id]) {