upgrade_unsupp.go 549 B

123456789101112131415161718192021
  1. // Copyright (C) 2014 The Syncthing Authors.
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this file,
  5. // You can obtain one at http://mozilla.org/MPL/2.0/.
  6. // +build noupgrade
  7. package upgrade
  8. func upgradeTo(binary string, rel Release) error {
  9. return ErrUpgradeUnsupported
  10. }
  11. func upgradeToURL(binary, url string) error {
  12. return ErrUpgradeUnsupported
  13. }
  14. func LatestRelease(version string) (Release, error) {
  15. return Release{}, ErrUpgradeUnsupported
  16. }