mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-03 18:32:18 +00:00
e3b332bd34
* fix?(micro-default-editor): Just dep on Micro
* chore(update.rhai): Handle GPG imports
---------
(cherry picked from commit 1c8d4767ab)
Signed-off-by: Gilver <rockgrub@disroot.org>
Co-authored-by: Gilver <rockgrub@disroot.org>
10 lines
497 B
Plaintext
10 lines
497 B
Plaintext
let v = sh("dnf info micro -y | grep Version | grep -Eo '[0-9]+\\.[0-9]+.*'", #{"stdout": "piped"}).ctx.stdout;
|
|
v.pop();
|
|
rpm.version(v);
|
|
let r = sh("dnf info micro -y | grep Release | grep -Eo '[0-9]+' | head -1", #{"stdout": "piped"}).ctx.stdout;
|
|
r.pop();
|
|
rpm.f = sub(`Release: (.+?)\n`, "Release: " + r + "%{?dist}\n", rpm.f);
|
|
let e = sh("dnf info micro -y | grep Epoch | grep -Eo '[0-9]+'", #{"stdout": "piped"}).ctx.stdout;
|
|
e.pop();
|
|
rpm.f = sub(`Epoch: (.+?)\n`, "Epoch: " + e + "\n", rpm.f);
|