mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-18 01:20:38 +00:00
05c1d59a06
* fix(lightly-qt6): Funny missing labels in update.rhai Signed-off-by: Gilver <rockgrub@disroot.org> * While I'm here Signed-off-by: Gilver <rockgrub@disroot.org> * That was the name of the CMake file but okay Signed-off-by: Gilver <rockgrub@disroot.org> * Update lightly-qt6.spec Signed-off-by: Gilver <rockgrub@disroot.org> * Update lightly-qt6.spec Signed-off-by: Gilver <rockgrub@disroot.org> * Try to rule out any missing build deps but I don't think it's that Signed-off-by: Gilver <rockgrub@disroot.org> * ? Signed-off-by: Gilver <rockgrub@disroot.org> * Update lightly-qt6.spec Signed-off-by: Gilver <rockgrub@disroot.org> --------- Signed-off-by: Gilver <rockgrub@disroot.org>
15 lines
579 B
Plaintext
15 lines
579 B
Plaintext
import "andax/bump_extras.rhai" as bump;
|
|
|
|
fn main(labels) {
|
|
let branch = bump::as_bodhi_ver(labels.branch);
|
|
let url = `https://bodhi.fedoraproject.org/updates/?search=qt6-6.&status=stable&releases=${branch}&rows_per_page=1&page=1`;
|
|
for entry in get(url).json().updates[0].title.split(' ') {
|
|
let matches = find_all(`qt6-([\d.]+)-(\d+)\.[\w\d]+$`, entry);
|
|
if matches.len() != 0 {
|
|
return matches[0][1].split(".")[1];
|
|
}
|
|
}
|
|
}
|
|
|
|
open_file("anda/themes/lightly-qt6/VER6.txt").write(`${main(labels)}`); // will trig rebuild when changed
|