diff --git a/anda/lib/astal/astal-gtk/astal-gtk.spec b/anda/lib/astal/astal-gtk/astal-gtk.spec index 5b85dbdc31..76d9f3f4d0 100644 --- a/anda/lib/astal/astal-gtk/astal-gtk.spec +++ b/anda/lib/astal/astal-gtk/astal-gtk.spec @@ -1,5 +1,6 @@ -%global commit 5d4eef6 -%global commit_date 20250812 +%global commit 20bd8318e4136fbd3d4eb2d64dbabc3acbc915dd +%global shortcommit 20bd831 +%global commit_date 20250830 Name: astal Version: 0^%commit_date.%commit diff --git a/anda/lib/astal/astal-gtk/update.rhai b/anda/lib/astal/astal-gtk/update.rhai index add3305056..2a83ebdd48 100644 --- a/anda/lib/astal/astal-gtk/update.rhai +++ b/anda/lib/astal/astal-gtk/update.rhai @@ -1,8 +1,12 @@ import "andax/bump_extras.rhai" as bump; +import "andax/spec.rhai" as spec; let mg = bump::madoguchi_json("astal", labels.branch); rpm.global("commit_date", `0\^(\d+)\.([[:xdigit:]]+)`.find(mg.ver, 1)); -rpm.global("commit", `0\^(\d+)\.([[:xdigit:]]+)`.find(mg.ver, 2)); +rpm.global("shortcommit", `0\^(\d+)\.([[:xdigit:]]+)`.find(mg.ver, 2)); if rpm.changed() { rpm.release(`^(\d+)\.`.find(mg.rel, 1)); + rpm.global("commit", spec::get_global(#{ + f: open_file("anda/lib/astal/astal/astal.spec").read_string() + }, "commit")); }