do not automatically update unstable updates

part of #698
This commit is contained in:
Girish Ramakrishnan
2020-06-05 16:09:12 -07:00
parent a4516776d6
commit 3df61c9ab8
3 changed files with 6 additions and 1 deletions
+2
View File
@@ -1848,6 +1848,8 @@ function canAutoupdateApp(app, updateInfo) {
// for invalid subscriptions the appstore does not return a dockerImage
if (!manifest.dockerImage) return false;
if (updateInfo.unstable) return false; // only manual update allowed for unstable updates
if ((semver.major(app.manifest.version) !== 0) && (semver.major(app.manifest.version) !== semver.major(manifest.version))) return false; // major changes are blocking
if (app.runState === exports.RSTATE_STOPPED) return false; // stopped apps won't run migration scripts and shouldn't be updated