From e651e58ed8fc60818eeec82de6444a2a34e4ebc3 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 11 Dec 2025 00:41:30 -0800 Subject: [PATCH] fix(xone-nightly): Update script (#8260) (#8277) * fix(xone-nightly): Update script * chore: Spec * chore: Release --------- (cherry picked from commit af34c9b7903ee3f5c1ad300560946333697ae16c) Signed-off-by: Gilver Co-authored-by: Gilver --- anda/system/xone/nightly/kmod-common/update.rhai | 4 +++- anda/system/xone/nightly/kmod-common/xone-nightly.spec | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/anda/system/xone/nightly/kmod-common/update.rhai b/anda/system/xone/nightly/kmod-common/update.rhai index 7143977fc0..e46f17f7d2 100644 --- a/anda/system/xone/nightly/kmod-common/update.rhai +++ b/anda/system/xone/nightly/kmod-common/update.rhai @@ -2,5 +2,7 @@ rpm.global("commit", gh_commit("dlundqvist/xone")); if rpm.changed() { rpm.release(); rpm.global("commitdate", date()); - rpm.global("ver", gh("dlundqvist/xone")); + let v = gh("dlundqvist/xone"); + v.crop(1); + rpm.global("ver", v); } diff --git a/anda/system/xone/nightly/kmod-common/xone-nightly.spec b/anda/system/xone/nightly/kmod-common/xone-nightly.spec index 2da5afec15..6c06b04f9d 100644 --- a/anda/system/xone/nightly/kmod-common/xone-nightly.spec +++ b/anda/system/xone/nightly/kmod-common/xone-nightly.spec @@ -1,7 +1,7 @@ %global commit e927febbedbf8d6f040ff081b0c6703738e7e8d2 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commitdate 20251211 -%global ver v0.5.0 +%global ver 0.5.0 %global modulename xone %global _dracutconfdir %{_prefix}/lib/dracut/dracut.conf.d %global firmware_hash0 080ce4091e53a4ef3e5fe29939f51fd91f46d6a88be6d67eb6e99a5723b3a223 @@ -11,7 +11,7 @@ Name: xone-nightly Version: %{ver}^%{commitdate}git.%{shortcommit} -Release: 1%?dist +Release: 2%?dist %if 0%{?fedora} <= 43 || 0%{?rhel} <= 10 Epoch: 1 %endif