Files
packages/anda/system/mesa-freeworld/update.rhai
T
Raboneko 63e920f3f6 add: mesa-freeworld (#1847) (#1879)
* add: mesa-freeworld

Missing `update.rhai` because that requires some CI changes

* we do the funny and remove the file manually

Signed-off-by: madomado <madonuko@outlook.com>

* update.rhai

---------

Signed-off-by: madomado <madonuko@outlook.com>
(cherry picked from commit c52c0f5a81)

Co-authored-by: madomado <madonuko@outlook.com>
2024-08-11 20:33:43 +08:00

12 lines
350 B
Plaintext

if !labels.branch.starts_with("f") {
print(`mesa-freeworld: unsupported branch: ${labels.branch}`);
terminate();
}
let b = labels.branch;
if b == "frawhide" {
b = "rawhide";
}
let spec = get(`https://src.fedoraproject.org/rpms/mesa/raw/${b}/f/mesa.spec`);
let v = find(`(?m)^%global\s+ver\s+([\w\d.-]+)$`, spec, 1);
rpm.global("ver", v);