Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] xbps-src/update_check: add codeberg support
@ 2020-08-17  9:24 ifreund
  2020-08-17  9:30 ` ifreund
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ifreund @ 2020-08-17  9:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 337 bytes --]

There is a new pull request by ifreund against master on the void-packages repository

https://github.com/ifreund/void-packages upcheck-codeberg
https://github.com/void-linux/void-packages/pull/24317

xbps-src/update_check: add codeberg support


A patch file from https://github.com/void-linux/void-packages/pull/24317.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-upcheck-codeberg-24317.patch --]
[-- Type: text/x-diff, Size: 1330 bytes --]

From d57921ab128d566927b44e87897516d742b644a1 Mon Sep 17 00:00:00 2001
From: Isaac Freund <ifreund@ifreund.xyz>
Date: Mon, 17 Aug 2020 11:23:19 +0200
Subject: [PATCH] xbps-src/update_check: add codeberg support

---
 common/xbps-src/shutils/update_check.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/common/xbps-src/shutils/update_check.sh b/common/xbps-src/shutils/update_check.sh
index e8a549ad39b..eb96fc8ada2 100644
--- a/common/xbps-src/shutils/update_check.sh
+++ b/common/xbps-src/shutils/update_check.sh
@@ -56,7 +56,8 @@ update_check() {
               *cran.r-project.org/src/contrib*|\
               *rubygems.org*|\
               *crates.io*|\
-              *hg.sr.ht*)
+              *hg.sr.ht*|\
+              *codeberg.org*)
                 continue
                 ;;
             *)
@@ -140,6 +141,10 @@ update_check() {
                 hgsrhtname="$(printf %s "$url" | cut -d/ -f4,5)"
                 url="https://hg.sr.ht/$hgsrhtname/tags"
                 rx='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';;
+            *codeberg.org*)
+                codebergname="$(printf %s "$url" | cut -d/ -f4,5)"
+                url="https://codeberg.org/$codebergname/releases"
+                rx='/archive/\K[\d\.]+(?=\.tar\.gz)';;
             esac
         fi
 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-08-18 12:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-17  9:24 [PR PATCH] xbps-src/update_check: add codeberg support ifreund
2020-08-17  9:30 ` ifreund
2020-08-17 10:39 ` [PR REVIEW] " Chocimier
2020-08-17 10:39 ` Chocimier
2020-08-17 10:52 ` [PR PATCH] [Updated] " ifreund
2020-08-17 10:53 ` [PR REVIEW] " ifreund
2020-08-18 12:46 ` [PR PATCH] [Merged]: " Chocimier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).