mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 00:51:56 +00:00
chore: Swap Codeberg update functions to upstreamed Anda ones (#10948)
This commit is contained in:
@@ -1,3 +1 @@
|
|||||||
import "andax/bump_extras.rhai" as bump;
|
rpm.version(codeberg("GeopJr/BLAHAJ"));
|
||||||
|
|
||||||
rpm.version(bump::codeberg("GeopJr/BLAHAJ"));
|
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
import "andax/bump_extras.rhai" as bump;
|
rpm.global("commit", codeberg_commit("janAkali/grabnim"));
|
||||||
|
|
||||||
rpm.global("commit", bump::codeberg_commit("janAkali/grabnim"));
|
|
||||||
if rpm.changed() {
|
if rpm.changed() {
|
||||||
rpm.global("commit_date", date());
|
rpm.global("commit_date", date());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
import "andax/bump_extras.rhai" as bump;
|
rpm.global("commit", codeberg_commit("nathandyer/exquisite-linux-templates"));
|
||||||
|
|
||||||
rpm.global("commit", bump::codeberg_commit("nathandyer/exquisite-linux-templates"));
|
|
||||||
if rpm.changed() {
|
if rpm.changed() {
|
||||||
rpm.global("commit_date", date());
|
rpm.global("commit_date", date());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1 @@
|
|||||||
import "andax/bump_extras.rhai" as bump;
|
rpm.version(codeberg("Limine/Limine"));
|
||||||
|
|
||||||
rpm.version(bump::codeberg("Limine/Limine"));
|
|
||||||
|
|||||||
@@ -29,14 +29,6 @@ fn alma(pkg, repo, branch) {
|
|||||||
return(vr[1]);
|
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) {
|
fn as_bodhi_ver(branch) {
|
||||||
if branch.starts_with("el") {
|
if branch.starts_with("el") {
|
||||||
branch.crop(2);
|
branch.crop(2);
|
||||||
|
|||||||
Reference in New Issue
Block a user