Skip to Content.
Sympa Menu

sm-commit - [[SM-Commit] ] GIT changes to master sorcery by Ismael Luceno (3f8fb69ea8ce7ea5f5afb98a14089bb554e23fe2)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
  • Subject: [[SM-Commit] ] GIT changes to master sorcery by Ismael Luceno (3f8fb69ea8ce7ea5f5afb98a14089bb554e23fe2)
  • Date: Wed, 3 Jul 2024 03:29:46 +0000

GIT changes to master sorcery by Ismael Luceno <ismael AT sourcemage.org>:

usr/lib/sorcery/cmd/sightsee | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

New commits:
commit 3f8fb69ea8ce7ea5f5afb98a14089bb554e23fe2
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

sightsee: Add special case for Github

commit 708443f9e86696fee3d98764c9f84bc019723542
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

sightsee: Add {spell}-{version}-sources[.]... to the regex

diff --git a/usr/lib/sorcery/cmd/sightsee b/usr/lib/sorcery/cmd/sightsee
index 8c6275f..563f604 100755
--- a/usr/lib/sorcery/cmd/sightsee
+++ b/usr/lib/sorcery/cmd/sightsee
@@ -98,6 +98,14 @@ find "${paths[@]}" -name DETAILS -exec awk
-vdebug="$debug" '
watch_regex = $0
if (version != "") nextfile
}
+ function select_regex(spell, url) {
+ if (url ~ /^https:\/\/github\.com\/.*\/tags$/)
+ return "/archive/refs/tags/v?([0-9.]+)[.]tar"
+ return spell \
+ "[-_](R?[-_.+~0-9]+(([a-z]|rc|alpha|beta)[0-9]*)?)" \
+ "([-.]src|[-.]sources?)?" \
+ "[.](tar|zip|t[bgx]z|7z|sha?r|cpio|rpm|deb|[ot]tf)"
+ }
function print_spell() {
if (watch_url == "") {
printf "W: %s: %s\n", spell, \
@@ -105,10 +113,7 @@ find "${paths[@]}" -name DETAILS -exec awk
-vdebug="$debug" '
>"/dev/stderr"
} else {
if (!watch_regex)
- watch_regex = spell \
-
"[-_](R?[-_.+~0-9]+(([a-z]|rc|alpha|beta)[0-9]*)?)" \
- "([-.]src|[-.]source)?" \
-
"[.](tar|zip|t[bgx]z|7z|sha?r|cpio|rpm|deb|[ot]tf)"
+ watch_regex = select_regex(spell, watch_url)
if (debug)
printf "D: regex `%s`\n", watch_regex
>"/dev/stderr"
print spell, version, watch_url, watch_regex


  • [[SM-Commit] ] GIT changes to master sorcery by Ismael Luceno (3f8fb69ea8ce7ea5f5afb98a14089bb554e23fe2), Ismael Luceno, 07/02/2024

Archive powered by MHonArc 2.6.24.

Top of Page