mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-01 17:32:18 +00:00
10 lines
502 B
Plaintext
10 lines
502 B
Plaintext
let c = sh("cat anda/system/logitech-rs50-linux-driver/kmod-common/logitech-rs50-linux-driver.spec | grep '%global commit ' | sed -E 's/.+commit //'", #{"stdout": "piped"}).ctx.stdout;
|
|
c.pop();
|
|
rpm.global("commit", c);
|
|
if rpm.changed() {
|
|
rpm.release();
|
|
let d = sh("cat anda/system/logitech-rs50-linux-driver/kmod-common/logitech-rs50-linux-driver.spec | grep '%global commitdate' | sed -E 's/.+commitdate //'", #{"stdout": "piped"}).ctx.stdout;
|
|
d.pop();
|
|
rpm.global("commitdate", d);
|
|
}
|