upgrade_unsupp.go 637 B

1234567891011121314151617181920212223
  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. const DisabledByCompilation = true
  9. func upgradeTo(binary string, rel Release) error {
  10. return ErrUpgradeUnsupported
  11. }
  12. func upgradeToURL(archiveName, binary, url string) error {
  13. return ErrUpgradeUnsupported
  14. }
  15. func LatestRelease(releasesURL, current string, upgradeToPreRelease bool) (Release, error) {
  16. return Release{}, ErrUpgradeUnsupported
  17. }