Files
packages/anda/system/wine/dev/update.rhai
T
Gilver fadaee2537 fix(wine-dev): Handle inconsistent updates (#4906)
* fix(wine-dev): Inconsistent release names

Signed-off-by: Gilver <rockgrub@disroot.org>

* fix(wine-dev): Handle weird update versions spec side

Signed-off-by: Gilver <rockgrub@disroot.org>

---------

Signed-off-by: Gilver <rockgrub@disroot.org>
2025-05-21 23:23:53 +08:00

12 lines
517 B
Plaintext

let v = (gitlab_tag("gitlab.winehq.org", "5"));
rpm.global("ver", v); // Sometimes the development branch includes RC candidates
if rpm.changed () {
rpm.release();
// Find the current highest release
let matches = (find_all("[\\d.]+\\.[0x]", get("https://dl.winehq.org/wine/source/")));
matches.dedup();
let s = sh(`echo ${matches} | sed 's/,//g;s/\[//g;s/\]//g;s/"//g' | tr ' ' '\n' | sort -nr | tr '\n' ' '`, #{"stdout": "piped"}).ctx.stdout;
s.truncate(4);
rpm.global("srcmajor", s);
}