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

This commit is contained in:
Dan Stillman 2011-08-11 07:03:33 +00:00
parent ab43605070
commit 5e22c3fc58

View file

@ -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();