Refactor out upgrade package

This commit is contained in:
Jakob Borg
2014-07-31 16:01:23 +02:00
parent 13d77f1557
commit 4e36dd2943
8 changed files with 78 additions and 599 deletions

15
upgrade/upgrade_unsupp.go Normal file
View File

@@ -0,0 +1,15 @@
// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file).
// All rights reserved. Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
// +build windows solaris noupgrade
package upgrade
func Upgrade(current string) (Release, error) {
return Release{}, ErrUpgradeUnsupported
}
func LatestRelease(prerelease bool) (Release, error) {
return Release{}, ErrUpgradeUnsupported
}