Files
packages/anda/tools/neovim-default-editor/update.rhai
T
Raboneko eebebf8d93 add: neovim-default-editor (#5880) (#5889)
(cherry picked from commit f48acbf593)

Co-authored-by: Gilver <rockgrub@disroot.org>
2025-07-18 11:34:21 -05:00

9 lines
303 B
Plaintext

import "andax/bump_extras.rhai" as bump;
let v = bump::bodhi_vr("neovim", bump::as_bodhi_ver(labels.branch));
let e = sh("dnf rq --qf='%{epoch}' neovim --repo=fedora,updates", #{"stdout": "piped"}).ctx.stdout;
rpm.version(v[1]);
rpm.release(v[2]);
rpm.f = sub(`^Epoch: (.+?)$`, "Epoch: " + e, rpm.f);