Only register app updates for apps where the available version is actually bigger

Fixes #533
This commit is contained in:
Johannes Zellner
2016-01-13 14:43:13 +01:00
parent aec3238e42
commit 1a30e622cc
+1 -1
View File
@@ -67,7 +67,7 @@ function getAppUpdates(callback) {
var newManifest = latestAppVersions[apps[i].appStoreId].manifest;
var newVersion = newManifest.version;
if (newVersion !== oldVersion) {
if (semver.gt(newVersion, oldVersion)) {
appUpdateInfo[apps[i].id] = latestAppVersions[apps[i].appStoreId];
debug('Update available for %s (%s) from %s to %s', apps[i].location, apps[i].id, oldVersion, newVersion);
}