Disable autoupgrade if not supported (fixes #763)

This commit is contained in:
Audrius Butkevicius committed 2014-10-01 20:06:51 +01:00
1 parent 32d2e78e3c
commit a267bca8fb
4 files changed
+9 -6

No files matched your search

+3
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.