diff options
author | 6543 <6543@obermui.de> | 2021-04-16 07:50:44 +0200 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2021-04-16 08:47:03 +0000 |
commit | 5b06d0d13b233ae1b4b75c23081d0f322e227c0e (patch) | |
tree | 150af84bd6aae071fe8718d02157d917ee071553 | |
parent | fdc435d21d84cf58567b0f9d866f34a095032743 (diff) |
community/gitea: upgrade to 1.14.1
-rw-r--r-- | community/gitea/0001-use-repo1_bare-to-test-against.patch | 81 | ||||
-rw-r--r-- | community/gitea/APKBUILD | 6 |
2 files changed, 2 insertions, 85 deletions
diff --git a/community/gitea/0001-use-repo1_bare-to-test-against.patch b/community/gitea/0001-use-repo1_bare-to-test-against.patch deleted file mode 100644 index 8e239782cf5..00000000000 --- a/community/gitea/0001-use-repo1_bare-to-test-against.patch +++ /dev/null @@ -1,81 +0,0 @@ -From 62c6f47040e038868b6f4030b9bf5baabe352701 Mon Sep 17 00:00:00 2001 -From: 6543 <6543@obermui.de> -Date: Sun, 11 Apr 2021 15:39:31 +0200 -Subject: [PATCH] use repo1_bare to test against - ---- - modules/git/blob_test.go | 37 +++++++++++-------------------------- - 1 file changed, 11 insertions(+), 26 deletions(-) - -diff --git a/modules/git/blob_test.go b/modules/git/blob_test.go -index 9043de595..d02251ed9 100644 ---- a/modules/git/blob_test.go -+++ b/modules/git/blob_test.go -@@ -7,6 +7,7 @@ package git - - import ( - "io/ioutil" -+ "path/filepath" - "testing" - - "github.com/stretchr/testify/assert" -@@ -14,32 +15,15 @@ import ( - ) - - func TestBlob_Data(t *testing.T) { -- output := `Copyright (c) 2016 The Gitea Authors --Copyright (c) 2015 The Gogs Authors -- --Permission is hereby granted, free of charge, to any person obtaining a copy --of this software and associated documentation files (the "Software"), to deal --in the Software without restriction, including without limitation the rights --to use, copy, modify, merge, publish, distribute, sublicense, and/or sell --copies of the Software, and to permit persons to whom the Software is --furnished to do so, subject to the following conditions: -- --The above copyright notice and this permission notice shall be included in --all copies or substantial portions of the Software. -- --THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR --IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, --FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE --AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER --LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, --OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN --THE SOFTWARE. --` -- repo, err := OpenRepository("../../.git") -- assert.NoError(t, err) -+ output := "file2\n" -+ bareRepo1Path := filepath.Join(testReposDir, "repo1_bare") -+ repo, err := OpenRepository(bareRepo1Path) -+ if !assert.NoError(t, err) { -+ t.Fatal() -+ } - defer repo.Close() - -- testBlob, err := repo.GetBlob("a8d4b49dd073a4a38a7e58385eeff7cc52568697") -+ testBlob, err := repo.GetBlob("6c493ff740f9380390d5c9ddef4af18697ac9375") - assert.NoError(t, err) - - r, err := testBlob.DataAsync() -@@ -53,13 +37,14 @@ THE SOFTWARE. - } - - func Benchmark_Blob_Data(b *testing.B) { -- repo, err := OpenRepository("../../.git") -+ bareRepo1Path := filepath.Join(testReposDir, "repo1_bare") -+ repo, err := OpenRepository(bareRepo1Path) - if err != nil { - b.Fatal(err) - } - defer repo.Close() - -- testBlob, err := repo.GetBlob("a8d4b49dd073a4a38a7e58385eeff7cc52568697") -+ testBlob, err := repo.GetBlob("6c493ff740f9380390d5c9ddef4af18697ac9375") - if err != nil { - b.Fatal(err) - } --- -2.31.1 - diff --git a/community/gitea/APKBUILD b/community/gitea/APKBUILD index 5022f3a4888..84dd161f8c9 100644 --- a/community/gitea/APKBUILD +++ b/community/gitea/APKBUILD @@ -2,7 +2,7 @@ # Contributor: 6543 <6543@obermui.de> # Maintainer: 6543 <6543@obermui.de> pkgname=gitea -pkgver=1.14.0 +pkgver=1.14.1 pkgrel=0 pkgdesc="A self-hosted Git service written in Go" url="https://gitea.io" @@ -21,7 +21,6 @@ subpackages="$pkgname-openrc" source="$pkgname-$pkgver.tar.gz::https://github.com/go-gitea/gitea/archive/v$pkgver.tar.gz $pkgname.initd $pkgname.ini - 0001-use-repo1_bare-to-test-against.patch " builddir="$srcdir/src/code.gitea.io/$pkgname" @@ -95,7 +94,6 @@ package() { "$pkgdir"/etc/init.d/$pkgname } -sha512sums="6394e21906322f73615a9ecac6b9ccb210cc7f9e489d61f522233f4628f23d449db692087e657ef57026a7cb680c3d823464ba386484b3ed1680b520b57387a9 gitea-1.14.0.tar.gz -307f49dfd156ec05d480977cc98e68883356fb789d556076d8ea5c4c27a764163e5c0c9a8cb6db04e6bd298bbe7301423be432eb88d11dadf4f00c71673c9d4d 0001-use-repo1_bare-to-test-against.patch +sha512sums="bf7ba606028eb17f7dbd3ce7cdc392e80c4bc907b6b7b5104410f08f71d8728b7142087a79672e17631a9e12cc819faafb3dda02707fc6aae5116cebdeab7d08 gitea-1.14.1.tar.gz 2497e6f2a18e3ceb65352cd220eab2c1c0893d0e731600462a60397de2b70d7c1de7db2af2769b25fe708b0822c811bb20dc797b59b9dd93efb376bea1c35796 gitea.initd 431184faffa8996873d92d7b0d16bc4b1a0178d264cd2928d1f49b13ad3e6470d9ede7a18c12112deeeb38f0647ccc0b012e98bcbd96e7b8496a3dc18f5b1fb7 gitea.ini" |