From 57950dd1209e07fd4a1e4f8972e156bba8b6e172 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 29 Nov 2025 05:22:03 -0800 Subject: [PATCH] chore(uwufetch): Update for semi-active branch (#7761) (#7767) * chore(uwufetch): Update for new semi-active branch * fix: Spec * Try `gh`?? * fix: I see the issue...cursed * Unintelligent moment * Just do this --------- (cherry picked from commit 872a56a20ef586321dcbb6b82715d8787c0127f1) Signed-off-by: Gilver Co-authored-by: Gilver --- anda/misc/uwufetch/update.rhai | 9 ++++++--- anda/misc/uwufetch/uwufetch.spec | 5 +++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/anda/misc/uwufetch/update.rhai b/anda/misc/uwufetch/update.rhai index 599bb2194c..40059a3c83 100644 --- a/anda/misc/uwufetch/update.rhai +++ b/anda/misc/uwufetch/update.rhai @@ -1,8 +1,11 @@ -rpm.global("commit", gh_commit("ad-oliviero/uwufetch")); +let json = get(`https://api.github.com/repos/ad-oliviero/uwufetch/commits/development`).json(); +let c = json.sha; +let d = json.commit.author.date; +rpm.global("commit", c); if rpm.changed() { rpm.release(); - rpm.global("commit_date", date()); + rpm.global("fulldate", d); + d.truncate(10); let ver = gh_tag("ad-oliviero/uwufetch"); - ver.crop(1); rpm.global("ver", ver); } diff --git a/anda/misc/uwufetch/uwufetch.spec b/anda/misc/uwufetch/uwufetch.spec index bd9e155129..82c73a4d71 100644 --- a/anda/misc/uwufetch/uwufetch.spec +++ b/anda/misc/uwufetch/uwufetch.spec @@ -1,7 +1,8 @@ %global commit f3d4503e72fa5b7dff466e527453cfbf2c95cc01 %global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global commit_date 20251128 -%global ver .1 +%global fulldate 2024-02-14 +%global commit_date %(echo %{fulldate} | sed 's/-//g') +%global ver 2.1 %global debug_package %{nil} Name: uwufetch