Skip to content

Commit

Permalink
update.rhai
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko committed Aug 10, 2024
1 parent 6e10c02 commit 8242022
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions anda/system/mesa-freeworld/anda.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ project pkg {
rpm {
spec = "mesa-freeworld.spec"
}
labels {
updbranch = 1
}
}
11 changes: 11 additions & 0 deletions anda/system/mesa-freeworld/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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);

0 comments on commit 8242022

Please sign in to comment.