Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] common/xbps-src/shutils/update_check.sh: tweak url and rx for codeberg
@ 2022-08-23 16:26 icp1994
  2022-08-24 18:01 ` [PR PATCH] [Merged]: " classabbyamp
  0 siblings, 1 reply; 2+ messages in thread
From: icp1994 @ 2022-08-23 16:26 UTC (permalink / raw)
  To: ml

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

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

https://github.com/icp1994/void-packages tweak-codeberg-update-check
https://github.com/void-linux/void-packages/pull/38860

common/xbps-src/shutils/update_check.sh: tweak url and rx for codeberg
Exhaustive verification is cheap due to low volume
`grep -lr --include template codeberg srcpkgs/ | cut -d/ -f2 | xargs -n1 ./xbps-src update-check`

On current master `mdcat` and `nsxiv` reports `NO VERSION`.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tweak-codeberg-update-check-38860.patch --]
[-- Type: text/x-diff, Size: 1228 bytes --]

From 4c13135acf7e0b33d6d6b784ea65d39783e7b7c4 Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Mon, 22 Aug 2022 00:33:12 +0530
Subject: [PATCH] common/xbps-src/shutils/update_check.sh: tweak url and rx for
 codeberg

Accommodate for more patterns in distfile urls.
---
 common/xbps-src/shutils/update_check.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/xbps-src/shutils/update_check.sh b/common/xbps-src/shutils/update_check.sh
index 80ab6e8889d8..ec53ed9f38e6 100644
--- a/common/xbps-src/shutils/update_check.sh
+++ b/common/xbps-src/shutils/update_check.sh
@@ -149,8 +149,8 @@ update_check() {
                 rx='/crates/'${pkgname#rust-}'/\K[0-9.]*(?=/download)' ;;
             *codeberg.org*)
                 pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)"
-                url="https://codeberg.org/$pkgurlname/releases"
-                rx='/archive/\K[\d.]+(?=\.tar\.gz)' ;;
+                url="https://codeberg.org/$pkgurlname/tags"
+                rx='/archive/(v-?|\Q'"$pkgname"'\E-)?\K[\d.]+(?=\.tar\.gz)' ;;
             *hg.sr.ht*)
                 pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)"
                 url="https://hg.sr.ht/$pkgurlname/tags"

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

* Re: [PR PATCH] [Merged]: common/xbps-src/shutils/update_check.sh: tweak url and rx for codeberg
  2022-08-23 16:26 [PR PATCH] common/xbps-src/shutils/update_check.sh: tweak url and rx for codeberg icp1994
@ 2022-08-24 18:01 ` classabbyamp
  0 siblings, 0 replies; 2+ messages in thread
From: classabbyamp @ 2022-08-24 18:01 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

common/xbps-src/shutils/update_check.sh: tweak url and rx for codeberg
https://github.com/void-linux/void-packages/pull/38860

Description:
Exhaustive verification is cheap due to low volume
`grep -lr --include template codeberg srcpkgs/ | cut -d/ -f2 | xargs -n1 ./xbps-src update-check`

On current master `mdcat` and `nsxiv` reports `NO VERSION`.

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

end of thread, other threads:[~2022-08-24 18:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-23 16:26 [PR PATCH] common/xbps-src/shutils/update_check.sh: tweak url and rx for codeberg icp1994
2022-08-24 18:01 ` [PR PATCH] [Merged]: " classabbyamp

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).