diff options
author | Steve Wills <swills@FreeBSD.org> | 2014-09-28 22:08:52 +0000 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2014-09-28 22:08:52 +0000 |
commit | 0393573f88dd44a26be995caa3ce8ef85916f214 (patch) | |
tree | 28a06393d3deb70ba3cca7df9bc6126d8fcb5c0e /net/syncthing/files | |
parent | d9bb253488e27ea5c2ecc697906d8d268e2ae09e (diff) | |
download | ports-0393573f88dd44a26be995caa3ce8ef85916f214.tar.gz ports-0393573f88dd44a26be995caa3ce8ef85916f214.zip |
Notes
Diffstat (limited to 'net/syncthing/files')
-rw-r--r-- | net/syncthing/files/patch-upgrade__upgrade_supported.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net/syncthing/files/patch-upgrade__upgrade_supported.go b/net/syncthing/files/patch-upgrade__upgrade_supported.go new file mode 100644 index 000000000000..76c5bc7dc330 --- /dev/null +++ b/net/syncthing/files/patch-upgrade__upgrade_supported.go @@ -0,0 +1,10 @@ +--- upgrade/upgrade_supported.go.orig 2014-09-28 21:24:06.335428814 +0000 ++++ upgrade/upgrade_supported.go 2014-09-28 21:24:59.699424791 +0000 +@@ -70,6 +70,7 @@ + + // Returns the latest release, including prereleases or not depending on the argument + func LatestRelease(prerelease bool) (Release, error) { ++ return Release{}, ErrVersionUnknown + resp, err := http.Get("https://api.github.com/repos/syncthing/syncthing/releases?per_page=10") + if err != nil { + return Release{}, err |