www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 5e22c3fc5860da4d4cc9c64608177c60f2f116df
parent ab43605070546bac8657198a3d5cff42218af170
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu, 11 Aug 2011 07:03:33 +0000

Look for deleted.txt in extension root first (for XPI builds) and translators directory second (for SVN builds)


Diffstat:
Mchrome/content/zotero/xpcom/schema.js | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js @@ -506,8 +506,14 @@ Zotero.Schema = new function(){ var lastVersion = Zotero.DB.valueQuery(sql); var deleted = extDir.clone(); - deleted.append('translators'); deleted.append('deleted.txt'); + // In SVN builds, deleted.txt is in the translators directory + if (!deleted.exists()) { + deleted = extDir.clone(); + deleted.append('translators'); + deleted.append('deleted.txt'); + } + deleted = Zotero.File.getContents(deleted); deleted = deleted.match(/^([^\s]+)/gm); var version = deleted.shift();