From 67ed02ee4e4c27c3506ffb85c9aa1d9d2f2b4d1c Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 6 Feb 2025 00:01:15 -0800 Subject: [PATCH] feat: add some missing update scripts (#3197) (#3216) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: add update.rhai for switcheroo-control Signed-off-by: Alberto García <4411661+GarciaLnk@users.noreply.github.com> * chore: add update.rhai for kf6-kio Signed-off-by: Alberto García <4411661+GarciaLnk@users.noreply.github.com> * chore: add update.rhai for libva-nvidia-driver Signed-off-by: Alberto García <4411661+GarciaLnk@users.noreply.github.com> * fix: libva-nvidia-driver update script Co-authored-by: madomado Signed-off-by: Alberto García <4411661+GarciaLnk@users.noreply.github.com> * delete kf6-kio update script Signed-off-by: Alberto García <4411661+GarciaLnk@users.noreply.github.com> --------- Signed-off-by: Alberto García <4411661+GarciaLnk@users.noreply.github.com> Co-authored-by: madomado (cherry picked from commit f0e764a4208256b7e0227d067963f7258a77b874) Co-authored-by: Alberto García <4411661+GarciaLnk@users.noreply.github.com> --- anda/apps/switcheroo-control/update.rhai | 1 + anda/system/nvidia/libva-nvidia-driver/update.rhai | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 anda/apps/switcheroo-control/update.rhai create mode 100644 anda/system/nvidia/libva-nvidia-driver/update.rhai diff --git a/anda/apps/switcheroo-control/update.rhai b/anda/apps/switcheroo-control/update.rhai new file mode 100644 index 0000000000..f2a0c871d7 --- /dev/null +++ b/anda/apps/switcheroo-control/update.rhai @@ -0,0 +1 @@ +rpm.version(gitlab("gitlab.freedesktop.org", "4339")); diff --git a/anda/system/nvidia/libva-nvidia-driver/update.rhai b/anda/system/nvidia/libva-nvidia-driver/update.rhai new file mode 100644 index 0000000000..fb6821cfbc --- /dev/null +++ b/anda/system/nvidia/libva-nvidia-driver/update.rhai @@ -0,0 +1,8 @@ +rpm.global("commit0", gh_commit("elFarto/nvidia-vaapi-driver")); +if rpm.changed() { + let v = gh("elFarto/nvidia-vaapi-driver"); + v.crop(1); + v += "%{!?tag:^%{date}git%{shortcommit0}}"; + rpm.version(v); + rpm.global("date", date()); +}