Make auto upgrade careful about breaking changes (fixes #1047)

This commit is contained in:
Jakob Borg
2014-12-29 12:21:08 +01:00
parent 8c7f1421c6
commit 4b668aaca8
3 changed files with 70 additions and 43 deletions

View File

@@ -1274,7 +1274,8 @@ func autoUpgrade() {
continue
}
if upgrade.CompareVersions(rel.Tag, Version) <= 0 {
if upgrade.CompareVersions(rel.Tag, Version) != upgrade.Newer {
// Skip equal, older or majorly newer (incompatible) versions
continue
}