diff --git a/anda/system/mesa-freeworld/anda.hcl b/anda/system/mesa-freeworld/anda.hcl index 9b5df27f09..59d018dbdf 100644 --- a/anda/system/mesa-freeworld/anda.hcl +++ b/anda/system/mesa-freeworld/anda.hcl @@ -2,4 +2,7 @@ project pkg { rpm { spec = "mesa-freeworld.spec" } + labels { + updbranch = 1 + } } diff --git a/anda/system/mesa-freeworld/update.rhai b/anda/system/mesa-freeworld/update.rhai new file mode 100644 index 0000000000..352a252e33 --- /dev/null +++ b/anda/system/mesa-freeworld/update.rhai @@ -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);