Improve word plugin installer logging
This commit is contained in:
parent
f8970b92de
commit
5df708d34f
1 changed files with 3 additions and 1 deletions
|
@ -67,10 +67,12 @@ ZoteroPluginInstaller.prototype = {
|
||||||
this.debug('Fetching addon info');
|
this.debug('Fetching addon info');
|
||||||
|
|
||||||
this._currentPluginVersion = (await Zotero.File.getContentsFromURLAsync(this._addon.VERSION_FILE)).trim();
|
this._currentPluginVersion = (await Zotero.File.getContentsFromURLAsync(this._addon.VERSION_FILE)).trim();
|
||||||
this.debug('Addon info fetched');
|
|
||||||
let lastInstalledVersion = this.prefBranch.getCharPref("version");
|
let lastInstalledVersion = this.prefBranch.getCharPref("version");
|
||||||
let lastAttemptedVersion = this.prefBranch.getCharPref("lastAttemptedVersion", "");
|
let lastAttemptedVersion = this.prefBranch.getCharPref("lastAttemptedVersion", "");
|
||||||
let lastPluginFileVersion = this._addon.LAST_INSTALLED_FILE_UPDATE;
|
let lastPluginFileVersion = this._addon.LAST_INSTALLED_FILE_UPDATE;
|
||||||
|
this.debug(`Addon info fetched. version: ${this._currentPluginVersion}, `
|
||||||
|
+ `file version: ${lastPluginFileVersion}, installed version: ${lastInstalledVersion}`
|
||||||
|
+ `attempted: ${lastAttemptedVersion}`);
|
||||||
const newVersionSinceLastInstall = Services.vc.compare(lastInstalledVersion, lastPluginFileVersion) < 0;
|
const newVersionSinceLastInstall = Services.vc.compare(lastInstalledVersion, lastPluginFileVersion) < 0;
|
||||||
const newVersionSinceLastAttempt = Services.vc.compare(lastAttemptedVersion, lastPluginFileVersion) < 0;
|
const newVersionSinceLastAttempt = Services.vc.compare(lastAttemptedVersion, lastPluginFileVersion) < 0;
|
||||||
const shouldSkipInstallation = this.prefBranch.getBoolPref("skipInstallation");
|
const shouldSkipInstallation = this.prefBranch.getBoolPref("skipInstallation");
|
||||||
|
|
Loading…
Reference in a new issue