feat: Update scripts so Obsoletes and Release automatically rebuild and bump on Rawhide (#7667) (#7680)

(cherry picked from commit c3eeebaf65)

Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
Raboneko
2025-11-25 17:03:59 -08:00
committed by GitHub
parent 3ac5c06824
commit 18cc414fbb
6 changed files with 22 additions and 0 deletions
View File
+3
View File
@@ -3,4 +3,7 @@ project pkg {
rpm {
spec = "terra-obsolete.spec"
}
labels {
updbranch = 1
}
}
+8
View File
@@ -0,0 +1,8 @@
import "andax/bump_extras.rhai" as bump;
open_file("anda/terra/obsolete/RELEASE.txt", "w").write(bump::as_bodhi_ver(labels.branch));
let dir = sub(`/[^/]+$`, "", __script_path);
if sh("[[ `git status " + dir + " --porcelain` ]] && exit 1 || exit 0", #{}).ctx.rc == 1 {
rpm.release();
}
View File
+3
View File
@@ -3,4 +3,7 @@ project pkg {
rpm {
spec = "terra-release.spec"
}
labels {
updbranch = 1
}
}
+8
View File
@@ -0,0 +1,8 @@
import "andax/bump_extras.rhai" as bump;
open_file("anda/terra/release/RELEASE.txt", "w").write(bump::as_bodhi_ver(labels.branch));
let dir = sub(`/[^/]+$`, "", __script_path);
if sh("[[ `git status " + dir + " --porcelain` ]] && exit 1 || exit 0", #{}).ctx.rc == 1 {
rpm.release();
}