mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-14 15:40:44 +00:00
ed4ad740f0
(cherry picked from commit 1876927c99)
Signed-off-by: Gilver <rockgrub@disroot.org>
Co-authored-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=qt5-5.&status=stable&releases=${branch}&rows_per_page=1&page=1`;
|
|
for entry in get(url).json().updates[0].title.split(' ') {
|
|
let matches = find_all(`qt5-([\d.]+)-(\d+)\.[\w\d]+$`, entry);
|
|
if matches.len() != 0 {
|
|
return matches[0][1].split(".")[1];
|
|
}
|
|
}
|
|
}
|
|
|
|
open_file("anda/themes/lightly-qt5/VER5.txt").write(`${main(labels)}`); // will trig rebuild when changed
|