From 144a881ae59ac752119a84e50d060e8a99b66aef Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 31 Jul 2014 11:47:00 +0200 Subject: [PATCH] Fix build for upgrade-unsupported platforms --- cmd/syncthing/upgrade_common.go | 7 +++++++ cmd/syncthing/upgrade_supported.go | 10 ---------- cmd/syncthing/upgrade_unsupp.go | 4 ---- 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/cmd/syncthing/upgrade_common.go b/cmd/syncthing/upgrade_common.go index 68db47678..0b2d3903b 100644 --- a/cmd/syncthing/upgrade_common.go +++ b/cmd/syncthing/upgrade_common.go @@ -1,6 +1,7 @@ package main import ( + "errors" "strconv" "strings" ) @@ -16,6 +17,12 @@ type githubAsset struct { Name string `json:"name"` } +var ( + errVersionUpToDate = errors.New("current version is up to date") + errVersionUnknown = errors.New("couldn't fetch release information") + errUpgradeUnsupported = errors.New("upgrade unsupported") +) + // Returns 1 if a>b, -1 if a