mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
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:
@@ -3,4 +3,7 @@ project pkg {
|
||||
rpm {
|
||||
spec = "terra-obsolete.spec"
|
||||
}
|
||||
labels {
|
||||
updbranch = 1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
@@ -3,4 +3,7 @@ project pkg {
|
||||
rpm {
|
||||
spec = "terra-release.spec"
|
||||
}
|
||||
labels {
|
||||
updbranch = 1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user