mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-01 17:32:18 +00:00
6c40035cdd
* fix(wine-dev): Inconsistent release names
* fix(wine-dev): Handle weird update versions spec side
---------
(cherry picked from commit fadaee2537)
Signed-off-by: Gilver <rockgrub@disroot.org>
Signed-off-by: RockGrub <RockGrub@users.noreply.github.com>
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);
|
|
}
|