Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] xbps-src/shutils/update_check.sh: add support for git.sr.ht
@ 2020-10-20 17:42 maybe-one-day-ubermensch
  2020-10-21 17:35 ` Chocimier
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: maybe-one-day-ubermensch @ 2020-10-20 17:42 UTC (permalink / raw)
  To: ml

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

There is a new pull request by maybe-one-day-ubermensch against master on the void-packages repository

https://github.com/maybe-one-day-ubermensch/void-packages udpdate-check
https://github.com/void-linux/void-packages/pull/25758

xbps-src/shutils/update_check.sh: add support for git.sr.ht
The code for `git.sr.ht` was almost identical to that of `hg.sr.ht`. The
main difference, aside from replacing `hg.sr.ht` in `url` with
`git.sr.ht`, was the endpoint of `url`. The `hg.sr.ht` url uses `tags`
whereas `git.sr.ht` uses `refs`.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-udpdate-check-25758.patch --]
[-- Type: text/x-diff, Size: 1587 bytes --]

From a9a6a4de2b70aec4468ebd2009da0f4cb7f5eb72 Mon Sep 17 00:00:00 2001
From: Jony <maybe-one-day-ubermensch@protonmail.com>
Date: Tue, 20 Oct 2020 10:33:55 -0700
Subject: [PATCH] xbps-src/shutils/update_check.sh: add support for git.sr.ht

The code for `git.sr.ht` was almost identical to that of `hg.sr.ht`. The
main difference, aside from replacing `hg.sr.ht` in `url` with
`git.sr.ht`, was the endpoint of `url`. The `hg.sr.ht` url uses `tags`
whereas `git.sr.ht` uses `refs`.
---
 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 b450c57beea..d88fb12e253 100644
--- a/common/xbps-src/shutils/update_check.sh
+++ b/common/xbps-src/shutils/update_check.sh
@@ -57,7 +57,8 @@ update_check() {
               *rubygems.org*|\
               *crates.io*|\
               *codeberg.org*|\
-              *hg.sr.ht*)
+              *hg.sr.ht*|\
+              *git.sr.ht*)
                 continue
                 ;;
             *)
@@ -145,6 +146,10 @@ update_check() {
                 pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)"
                 url="https://hg.sr.ht/$pkgurlname/tags"
                 rx='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';;
+            *git.sr.ht*)
+                pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)"
+                url="https://git.sr.ht/$pkgurlname/refs"
+                rx='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';;
             esac
         fi
 

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

* Re: xbps-src/shutils/update_check.sh: add support for git.sr.ht
  2020-10-20 17:42 [PR PATCH] xbps-src/shutils/update_check.sh: add support for git.sr.ht maybe-one-day-ubermensch
@ 2020-10-21 17:35 ` Chocimier
  2020-10-21 19:33 ` [PR PATCH] [Updated] " maybe-one-day-ubermensch
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Chocimier @ 2020-10-21 17:35 UTC (permalink / raw)
  To: ml

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

New comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/25758#issuecomment-713738697

Comment:
remove update files of scdoc and snixembed

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

* Re: [PR PATCH] [Updated] xbps-src/shutils/update_check.sh: add support for git.sr.ht
  2020-10-20 17:42 [PR PATCH] xbps-src/shutils/update_check.sh: add support for git.sr.ht maybe-one-day-ubermensch
  2020-10-21 17:35 ` Chocimier
@ 2020-10-21 19:33 ` maybe-one-day-ubermensch
  2020-10-21 19:34 ` maybe-one-day-ubermensch
  2020-10-21 20:10 ` [PR PATCH] [Merged]: " Chocimier
  3 siblings, 0 replies; 5+ messages in thread
From: maybe-one-day-ubermensch @ 2020-10-21 19:33 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by maybe-one-day-ubermensch against master on the void-packages repository

https://github.com/maybe-one-day-ubermensch/void-packages udpdate-check
https://github.com/void-linux/void-packages/pull/25758

xbps-src/shutils/update_check.sh: add support for git.sr.ht
The code for `git.sr.ht` was almost identical to that of `hg.sr.ht`. The
main difference, aside from replacing `hg.sr.ht` in `url` with
`git.sr.ht`, was the endpoint of `url`. The `hg.sr.ht` url uses `tags`
whereas `git.sr.ht` uses `refs`.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-udpdate-check-25758.patch --]
[-- Type: text/x-diff, Size: 2872 bytes --]

From a9a6a4de2b70aec4468ebd2009da0f4cb7f5eb72 Mon Sep 17 00:00:00 2001
From: Jony <maybe-one-day-ubermensch@protonmail.com>
Date: Tue, 20 Oct 2020 10:33:55 -0700
Subject: [PATCH 1/3] xbps-src/shutils/update_check.sh: add support for
 git.sr.ht

The code for `git.sr.ht` was almost identical to that of `hg.sr.ht`. The
main difference, aside from replacing `hg.sr.ht` in `url` with
`git.sr.ht`, was the endpoint of `url`. The `hg.sr.ht` url uses `tags`
whereas `git.sr.ht` uses `refs`.
---
 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 b450c57beea..d88fb12e253 100644
--- a/common/xbps-src/shutils/update_check.sh
+++ b/common/xbps-src/shutils/update_check.sh
@@ -57,7 +57,8 @@ update_check() {
               *rubygems.org*|\
               *crates.io*|\
               *codeberg.org*|\
-              *hg.sr.ht*)
+              *hg.sr.ht*|\
+              *git.sr.ht*)
                 continue
                 ;;
             *)
@@ -145,6 +146,10 @@ update_check() {
                 pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)"
                 url="https://hg.sr.ht/$pkgurlname/tags"
                 rx='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';;
+            *git.sr.ht*)
+                pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)"
+                url="https://git.sr.ht/$pkgurlname/refs"
+                rx='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';;
             esac
         fi
 

From 6c62c818c0b194efd36dedae3a77d4bdfcb87771 Mon Sep 17 00:00:00 2001
From: Jony <maybe-one-day-ubermensch@protonmail.com>
Date: Wed, 21 Oct 2020 12:30:59 -0700
Subject: [PATCH 2/3] scdoc: remove update file

`update-check.sh` now has support for `git.sr.ht`.
---
 srcpkgs/scdoc/update | 2 --
 1 file changed, 2 deletions(-)
 delete mode 100644 srcpkgs/scdoc/update

diff --git a/srcpkgs/scdoc/update b/srcpkgs/scdoc/update
deleted file mode 100644
index f8c8c99d68c..00000000000
--- a/srcpkgs/scdoc/update
+++ /dev/null
@@ -1,2 +0,0 @@
-site="https://git.sr.ht/%7Esircmpwn/scdoc/refs"
-pattern="scdoc/refs/\K[.\d]+(?=\")"

From e7b291b6ddae31d51425f4e56328dfd6ec754f3d Mon Sep 17 00:00:00 2001
From: Jony <maybe-one-day-ubermensch@protonmail.com>
Date: Wed, 21 Oct 2020 12:31:41 -0700
Subject: [PATCH 3/3] snixembed: remove update file.

`update-check.sh` now has support for `git.sr.ht`.
---
 srcpkgs/snixembed/update | 2 --
 1 file changed, 2 deletions(-)
 delete mode 100644 srcpkgs/snixembed/update

diff --git a/srcpkgs/snixembed/update b/srcpkgs/snixembed/update
deleted file mode 100644
index 317672d2239..00000000000
--- a/srcpkgs/snixembed/update
+++ /dev/null
@@ -1,2 +0,0 @@
-site="https://git.sr.ht/%7Esteef/snixembed/refs"
-pattern="snixembed/refs/\K[.\d]+(?=\")"

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

* Re: xbps-src/shutils/update_check.sh: add support for git.sr.ht
  2020-10-20 17:42 [PR PATCH] xbps-src/shutils/update_check.sh: add support for git.sr.ht maybe-one-day-ubermensch
  2020-10-21 17:35 ` Chocimier
  2020-10-21 19:33 ` [PR PATCH] [Updated] " maybe-one-day-ubermensch
@ 2020-10-21 19:34 ` maybe-one-day-ubermensch
  2020-10-21 20:10 ` [PR PATCH] [Merged]: " Chocimier
  3 siblings, 0 replies; 5+ messages in thread
From: maybe-one-day-ubermensch @ 2020-10-21 19:34 UTC (permalink / raw)
  To: ml

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

New comment by maybe-one-day-ubermensch on void-packages repository

https://github.com/void-linux/void-packages/pull/25758#issuecomment-713827391

Comment:
done

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

* Re: [PR PATCH] [Merged]: xbps-src/shutils/update_check.sh: add support for git.sr.ht
  2020-10-20 17:42 [PR PATCH] xbps-src/shutils/update_check.sh: add support for git.sr.ht maybe-one-day-ubermensch
                   ` (2 preceding siblings ...)
  2020-10-21 19:34 ` maybe-one-day-ubermensch
@ 2020-10-21 20:10 ` Chocimier
  3 siblings, 0 replies; 5+ messages in thread
From: Chocimier @ 2020-10-21 20:10 UTC (permalink / raw)
  To: ml

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

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

xbps-src/shutils/update_check.sh: add support for git.sr.ht
https://github.com/void-linux/void-packages/pull/25758

Description:
The code for `git.sr.ht` was almost identical to that of `hg.sr.ht`. The
main difference, aside from replacing `hg.sr.ht` in `url` with
`git.sr.ht`, was the endpoint of `url`. The `hg.sr.ht` url uses `tags`
whereas `git.sr.ht` uses `refs`.

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

end of thread, other threads:[~2020-10-21 20:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-20 17:42 [PR PATCH] xbps-src/shutils/update_check.sh: add support for git.sr.ht maybe-one-day-ubermensch
2020-10-21 17:35 ` Chocimier
2020-10-21 19:33 ` [PR PATCH] [Updated] " maybe-one-day-ubermensch
2020-10-21 19:34 ` maybe-one-day-ubermensch
2020-10-21 20:10 ` [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).