mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-01 17:32:18 +00:00
fadaee2537
* 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>
12 lines
517 B
Plaintext
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);
|
|
}
|