From 475064c982e29a654929615263408c02cace6880 Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 21 Apr 2020 18:30:07 +0200 Subject: [PATCH] gitea: fix wiki page rendering on go 1.14 --- srcpkgs/gitea/patches/10583.patch | 23 +++++++++++++++++++++++ srcpkgs/gitea/template | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/gitea/patches/10583.patch diff --git a/srcpkgs/gitea/patches/10583.patch b/srcpkgs/gitea/patches/10583.patch new file mode 100644 index 00000000000..74c8ac3934b --- /dev/null +++ b/srcpkgs/gitea/patches/10583.patch @@ -0,0 +1,23 @@ +From 1830d0ed5f4a67e3360ecbb55933b5540b6affce Mon Sep 17 00:00:00 2001 +From: zeripath +Date: Tue, 3 Mar 2020 03:37:10 +0000 +Subject: [PATCH] Remove unnecessary parentheses in template + +Fix #10552 +--- + templates/repo/wiki/view.tmpl | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl +index f160deedbd5..26ed049e63e 100644 +--- templates/repo/wiki/view.tmpl ++++ templates/repo/wiki/view.tmpl +@@ -45,7 +45,7 @@ + {{else if and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH)}} + + {{end}} +- {{if or ((not $.DisableHTTP) (and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH)))}} ++ {{if or (not $.DisableHTTP) (and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH))}} + diff --git a/srcpkgs/gitea/template b/srcpkgs/gitea/template index 2b16b3909bc..0e4f734ccee 100644 --- a/srcpkgs/gitea/template +++ b/srcpkgs/gitea/template @@ -1,7 +1,7 @@ # Template file for 'gitea' pkgname=gitea version=1.10.6 -revision=2 +revision=3 build_style=go go_import_path=code.gitea.io/gitea # This could be done with build options, but these are built in with the