From 68a86959d49c062cc27e5b31bf7d5213cfaf747c Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Mon, 30 Mar 2026 08:36:50 -0700 Subject: [PATCH] chore: Swap Codeberg update functions to upstreamed Anda ones (#10948) (#10952) --- anda/langs/crystal/blahaj/update.rhai | 4 +--- anda/langs/nim/grabnim/update.rhai | 4 +--- anda/misc/exquisite-linux-templates/update.rhai | 4 +--- anda/system/limine/update.rhai | 4 +--- andax/bump_extras.rhai | 8 -------- 5 files changed, 4 insertions(+), 20 deletions(-) diff --git a/anda/langs/crystal/blahaj/update.rhai b/anda/langs/crystal/blahaj/update.rhai index 0eed23daed..474744cf5f 100644 --- a/anda/langs/crystal/blahaj/update.rhai +++ b/anda/langs/crystal/blahaj/update.rhai @@ -1,3 +1 @@ -import "andax/bump_extras.rhai" as bump; - -rpm.version(bump::codeberg("GeopJr/BLAHAJ")); +rpm.version(codeberg("GeopJr/BLAHAJ")); diff --git a/anda/langs/nim/grabnim/update.rhai b/anda/langs/nim/grabnim/update.rhai index 75f215ef43..ab49b8c798 100644 --- a/anda/langs/nim/grabnim/update.rhai +++ b/anda/langs/nim/grabnim/update.rhai @@ -1,6 +1,4 @@ -import "andax/bump_extras.rhai" as bump; - -rpm.global("commit", bump::codeberg_commit("janAkali/grabnim")); +rpm.global("commit", codeberg_commit("janAkali/grabnim")); if rpm.changed() { rpm.global("commit_date", date()); } diff --git a/anda/misc/exquisite-linux-templates/update.rhai b/anda/misc/exquisite-linux-templates/update.rhai index 7f6a3c1afd..0eca0b00d7 100644 --- a/anda/misc/exquisite-linux-templates/update.rhai +++ b/anda/misc/exquisite-linux-templates/update.rhai @@ -1,6 +1,4 @@ -import "andax/bump_extras.rhai" as bump; - -rpm.global("commit", bump::codeberg_commit("nathandyer/exquisite-linux-templates")); +rpm.global("commit", codeberg_commit("nathandyer/exquisite-linux-templates")); if rpm.changed() { rpm.global("commit_date", date()); } diff --git a/anda/system/limine/update.rhai b/anda/system/limine/update.rhai index eb0821f62d..1ba7f95774 100644 --- a/anda/system/limine/update.rhai +++ b/anda/system/limine/update.rhai @@ -1,3 +1 @@ -import "andax/bump_extras.rhai" as bump; - -rpm.version(bump::codeberg("Limine/Limine")); +rpm.version(codeberg("Limine/Limine")); diff --git a/andax/bump_extras.rhai b/andax/bump_extras.rhai index 90ec2e5ee8..63417b27cb 100644 --- a/andax/bump_extras.rhai +++ b/andax/bump_extras.rhai @@ -29,14 +29,6 @@ fn alma(pkg, repo, branch) { return(vr[1]); } -fn codeberg_commit(repo) { - return get(`https://codeberg.org/api/v1/repos/${repo}/commits?stat=false&verification=false&files=false&limit=1`).json_arr()[0].sha; -} - -fn codeberg(repo) { - return get(`https://codeberg.org/api/v1/repos/${repo}/releases/latest`).json().tag_name; -} - fn as_bodhi_ver(branch) { if branch.starts_with("el") { branch.crop(2);