Github messages for voidlinux
 help / color / mirror / Atom feed
From: ifreund <ifreund@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] xbps-src/update_check: add codeberg support
Date: Mon, 17 Aug 2020 11:24:55 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24317@inbox.vuxu.org> (raw)

[-- 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
 

             reply	other threads:[~2020-08-17  9:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-17  9:24 ifreund [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24317@inbox.vuxu.org \
    --to=ifreund@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).