Disable autoupgrade if not supported (fixes #763)

This commit is contained in:
Audrius Butkevicius
2014-09-30 23:01:32 +01:00
parent 32d2e78e3c
commit a267bca8fb
4 changed files with 9 additions and 6 deletions

View File

@@ -1192,6 +1192,9 @@ func autoUpgrade() {
}
rel, err := upgrade.LatestRelease(strings.Contains(Version, "-beta"))
if err == upgrade.ErrUpgradeUnsupported {
return
}
if err != nil {
// Don't complain too loudly here; we might simply not have
// internet connectivity, or the upgrade server might be down.