diff --git a/anda/apps/mpv/mpv-nightly.spec b/anda/apps/mpv/mpv-nightly.spec index 242288b82d..95efcb6d6d 100644 --- a/anda/apps/mpv/mpv-nightly.spec +++ b/anda/apps/mpv/mpv-nightly.spec @@ -1,9 +1,10 @@ %global commit 443c2487d7dd1039e297abad6398135b3c463018 %global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global commit_date 240218 %global ver 0.37.0 Name: mpv-nightly -Version: %ver^%shortcommit +Version: %ver^%commit_date.%shortcommit Release: 1%{?dist} License: GPL-2.0-or-later AND LGPL-2.1-or-later diff --git a/anda/apps/mpv/update.rhai b/anda/apps/mpv/update.rhai index 746a18451e..09c2703292 100644 --- a/anda/apps/mpv/update.rhai +++ b/anda/apps/mpv/update.rhai @@ -1,6 +1,8 @@ if filters.contains("nightly") { - let o = req("https://api.github.com/repos/mpv-player/mpv/commits/HEAD").json(); - rpm.global("commit", o.sha); - rpm.global("ver", gh("mpv-player/mpv")); - rpm.release(); + rpm.global("commit", gh_commit("mpv-player/mpv")); + if rpm.changed() { + rpm.global("ver", gh("mpv-player/mpv")); + rpm.global("commit_date", date()); + rpm.release(); + } } diff --git a/anda/desktops/elementary/switchboard-plug-wallet/switchboard-plug-wallet.spec b/anda/desktops/elementary/switchboard-plug-wallet/switchboard-plug-wallet.spec index 89e765f463..18d665fa2a 100644 --- a/anda/desktops/elementary/switchboard-plug-wallet/switchboard-plug-wallet.spec +++ b/anda/desktops/elementary/switchboard-plug-wallet/switchboard-plug-wallet.spec @@ -7,10 +7,11 @@ %global plug_rdnn io.elementary.switchboard.wallet %global commit 50582fc7ee43a4b47647d04786dcf1d0eb45af36 +%global commit_date 240218 Name: switchboard-plug-wallet Summary: Switchboard Wallet Plug -Version: %(c=%commit; echo ${c:0:7}) +Version: %commit_date.%(c=%commit; echo ${c:0:7}) Release: 2%?dist License: GPL-3.0-or-later diff --git a/anda/desktops/elementary/switchboard-plug-wallet/update.rhai b/anda/desktops/elementary/switchboard-plug-wallet/update.rhai index a125200846..c4c276a437 100644 --- a/anda/desktops/elementary/switchboard-plug-wallet/update.rhai +++ b/anda/desktops/elementary/switchboard-plug-wallet/update.rhai @@ -1,3 +1,4 @@ -let req = new_req("https://api.github.com/repos/elementary/switchboard-plug-wallet/commits/HEAD"); -req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`); -rpm.global("commit", json(req.get()).sha); +rpm.global("commit", gh_commit("elementary/switchboard-plug-wallet")); +if rpm.changed() { + rpm.global("commit_date", date()); +} diff --git a/anda/desktops/gnome/gnome-shell-extension-pop-shell/terra-gnome-shell-extension-pop-shell.spec b/anda/desktops/gnome/gnome-shell-extension-pop-shell/terra-gnome-shell-extension-pop-shell.spec index fdf71d7219..362f8608a1 100644 --- a/anda/desktops/gnome/gnome-shell-extension-pop-shell/terra-gnome-shell-extension-pop-shell.spec +++ b/anda/desktops/gnome/gnome-shell-extension-pop-shell/terra-gnome-shell-extension-pop-shell.spec @@ -3,6 +3,7 @@ %global uuid %{extension}@system76.com %global commit 9a30c5bd49c373896410852d6477596ac4c43bd3 %global shortcommit %{lua:print(macros.commit:sub(1,7))} +%global commit_date 240218 %global ver 1.2.0 Name: terra-gnome-shell-extension-%{extension} diff --git a/anda/desktops/gnome/gnome-shell-extension-pop-shell/update.rhai b/anda/desktops/gnome/gnome-shell-extension-pop-shell/update.rhai index 5c4ac207fe..077e121d19 100644 --- a/anda/desktops/gnome/gnome-shell-extension-pop-shell/update.rhai +++ b/anda/desktops/gnome/gnome-shell-extension-pop-shell/update.rhai @@ -1,4 +1,8 @@ if filters.contains("nightly") { - rpm.global("commit", get("https://api.github.com/repos/pop-os/shell/commits/HEAD").json().sha); - rpm.global("ver", gh("pop-os/shell")); + rpm.global("commit", gh_commit("pop-os/shell")); + if rpm.changed() { + rpm.global("ver", gh("pop-os/shell")); + rpm.release(); + rpm.global("commit_date", date()); + } } diff --git a/anda/desktops/lomiri-unity/lomiri-ui-toolkit/update.rhai b/anda/desktops/lomiri-unity/lomiri-ui-toolkit/update.rhai index 4c97bcbcd3..57f833b80f 100644 --- a/anda/desktops/lomiri-unity/lomiri-ui-toolkit/update.rhai +++ b/anda/desktops/lomiri-unity/lomiri-ui-toolkit/update.rhai @@ -1,2 +1,4 @@ -rpm.version(get("https://gitlab.com/api/v4/projects/19057685/repository/tags").json_arr()[0].name); -rpm.global("commit", get("https://gitlab.com/api/v4/projects/19057685/repository/commits").json_arr()[0].id); +rpm.version(gitlab_tag("19057685")); +if rpm.changed() { + rpm.global("commit", gitlab_commit("19057685")); +} diff --git a/anda/desktops/lomiri-unity/lomiri-url-dispatcher/update.rhai b/anda/desktops/lomiri-unity/lomiri-url-dispatcher/update.rhai index 9793815e9a..6243101f9c 100644 --- a/anda/desktops/lomiri-unity/lomiri-url-dispatcher/update.rhai +++ b/anda/desktops/lomiri-unity/lomiri-url-dispatcher/update.rhai @@ -1,2 +1,4 @@ -rpm.version(get("https://gitlab.com/api/v4/projects/17424894/repository/tags").json_arr()[0].name); -rpm.global("commit", get("https://gitlab.com/api/v4/projects/17424894/repository/commits").json_arr()[0].id); +rpm.version(gitlab_tag("17424894")); +if rpm.changed() { + rpm.global("commit", get("https://gitlab.com/api/v4/projects/17424894/repository/commits").json_arr()[0].id); +} diff --git a/anda/desktops/lomiri-unity/lomiri/update.rhai b/anda/desktops/lomiri-unity/lomiri/update.rhai index bf40ea8d35..165f74f3ca 100644 --- a/anda/desktops/lomiri-unity/lomiri/update.rhai +++ b/anda/desktops/lomiri-unity/lomiri/update.rhai @@ -1,3 +1,4 @@ -let o = get("https://gitlab.com/api/v4/projects/25716028/repository/tags").json_arr()[0]; -rpm.version(o.name); -rpm.global("commit", get("https://gitlab.com/api/v4/projects/25716028/repository/commits").json_arr()[0].id); +rpm.version(gitlab_tag("25716028")); +if rpm.changed() { + rpm.global("commit", get("https://gitlab.com/api/v4/projects/25716028/repository/commits").json_arr()[0].id); +} diff --git a/anda/games/prismlauncher-nightly/update.rhai b/anda/games/prismlauncher-nightly/update.rhai index b26ce9cfec..4b662cbb53 100644 --- a/anda/games/prismlauncher-nightly/update.rhai +++ b/anda/games/prismlauncher-nightly/update.rhai @@ -1,11 +1,10 @@ if filters.contains("nightly") { - let req = new_req("https://api.github.com/repos/PrismLauncher/PrismLauncher/commits/HEAD"); - req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`); - let sha = req.get().json().sha; - rpm.global("commit", sha); - rpm.release(); - let cmake = get("https://raw.githubusercontent.com/PrismLauncher/PrismLauncher/develop/CMakeLists.txt"); - let maj = find("set\\(Launcher_VERSION_MAJOR\\s+(\\d+)\\)", cmake, 1); - let min = find("set\\(Launcher_VERSION_MINOR\\s+(\\d+)\\)", cmake, 1); - rpm.version(`${maj}.${min}^%{snapshot_info}`); + rpm.global("commit", gh_commit("PrismLauncher/PrismLauncher")); + if rpm.changed() { + rpm.release(); + let cmake = get("https://raw.githubusercontent.com/PrismLauncher/PrismLauncher/develop/CMakeLists.txt"); + let maj = find("set\\(Launcher_VERSION_MAJOR\\s+(\\d+)\\)", cmake, 1); + let min = find("set\\(Launcher_VERSION_MINOR\\s+(\\d+)\\)", cmake, 1); + rpm.version(`${maj}.${min}^${date()}.%{snapshot_info}`); + } } diff --git a/anda/games/prismlauncher-qt5-nightly/update.rhai b/anda/games/prismlauncher-qt5-nightly/update.rhai index b26ce9cfec..4b662cbb53 100644 --- a/anda/games/prismlauncher-qt5-nightly/update.rhai +++ b/anda/games/prismlauncher-qt5-nightly/update.rhai @@ -1,11 +1,10 @@ if filters.contains("nightly") { - let req = new_req("https://api.github.com/repos/PrismLauncher/PrismLauncher/commits/HEAD"); - req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`); - let sha = req.get().json().sha; - rpm.global("commit", sha); - rpm.release(); - let cmake = get("https://raw.githubusercontent.com/PrismLauncher/PrismLauncher/develop/CMakeLists.txt"); - let maj = find("set\\(Launcher_VERSION_MAJOR\\s+(\\d+)\\)", cmake, 1); - let min = find("set\\(Launcher_VERSION_MINOR\\s+(\\d+)\\)", cmake, 1); - rpm.version(`${maj}.${min}^%{snapshot_info}`); + rpm.global("commit", gh_commit("PrismLauncher/PrismLauncher")); + if rpm.changed() { + rpm.release(); + let cmake = get("https://raw.githubusercontent.com/PrismLauncher/PrismLauncher/develop/CMakeLists.txt"); + let maj = find("set\\(Launcher_VERSION_MAJOR\\s+(\\d+)\\)", cmake, 1); + let min = find("set\\(Launcher_VERSION_MINOR\\s+(\\d+)\\)", cmake, 1); + rpm.version(`${maj}.${min}^${date()}.%{snapshot_info}`); + } } diff --git a/anda/langs/nim/nim-nightly/nim-nightly.spec b/anda/langs/nim/nim-nightly/nim-nightly.spec index 3e217919c1..e782fb9cda 100644 --- a/anda/langs/nim/nim-nightly/nim-nightly.spec +++ b/anda/langs/nim/nim-nightly/nim-nightly.spec @@ -1,11 +1,12 @@ %global csrc_commit 561b417c65791cd8356b5f73620914ceff845d10 %global commit 92c8c6d5f4e5a96b71bf4eca5f6a136410f97d6e %global ver 2.1.1 +%global commit_date 240219 %global debug_package %nil Name: nim-nighlty -Version: %ver^%commit -Release: 1%?dist +Version: %ver^%commit_date.%commit +Release: 1%{?dist} Summary: Imperative, multi-paradigm, compiled programming language License: MIT and BSD URL: https://nim-lang.org diff --git a/anda/langs/nim/nim-nightly/update.rhai b/anda/langs/nim/nim-nightly/update.rhai index 874d47a96c..f39a7756c7 100644 --- a/anda/langs/nim/nim-nightly/update.rhai +++ b/anda/langs/nim/nim-nightly/update.rhai @@ -1,12 +1,13 @@ if filters.contains("nightly") { - let comp = get("https://raw.githubusercontent.com/nim-lang/Nim/devel/lib/system/compilation.nim"); - let maj = find("\\n\\s*NimMajor.+=\\s*(\\d+)\\n", comp, 1); - let min = find("\\n\\s*NimMinor.+=\\s*(\\d+)\\n", comp, 1); - let pat = find("\\n\\s*NimPatch.+=\\s*(\\d+)\\n", comp, 1); - let v = `${maj}.${min}.${pat}`; - rpm.global("ver", v); - let req = new_req("https://api.github.com/repos/nim-lang/Nim/commits/HEAD"); - req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`); - rpm.global("commit", req.get().json().sha); - rpm.release(); + rpm.global("commit", gh_commit("nim-lang/Nim")); + if rpm.changed() { + let comp = get("https://raw.githubusercontent.com/nim-lang/Nim/devel/lib/system/compilation.nim"); + let maj = find("\\n\\s*NimMajor.+=\\s*(\\d+)\\n", comp, 1); + let min = find("\\n\\s*NimMinor.+=\\s*(\\d+)\\n", comp, 1); + let pat = find("\\n\\s*NimPatch.+=\\s*(\\d+)\\n", comp, 1); + let v = `${maj}.${min}.${pat}`; + rpm.global("ver", v); + rpm.release(); + rpm.global("commit_date", date()); + } } diff --git a/anda/langs/vala/vala-language-server-nightly/update.rhai b/anda/langs/vala/vala-language-server-nightly/update.rhai index 3f185f0a3b..74251aaf98 100644 --- a/anda/langs/vala/vala-language-server-nightly/update.rhai +++ b/anda/langs/vala/vala-language-server-nightly/update.rhai @@ -1,7 +1,8 @@ if filters.contains("nightly") { - let req = new_req("https://api.github.com/repos/vala-lang/vala-language-server/commits/HEAD"); - req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`); - rpm.global("commit", json(req.get()).sha); - rpm.global("verrel", gh("vala-lang/vala-language-server")); - rpm.release(); + rpm.global("commit", gh_commit("vala-lang/vala-language-server")); + if rpm.changed() { + rpm.global("commit_date", date()); + rpm.global("verrel", gh("vala-lang/vala-language-server")); + rpm.release(); + } } diff --git a/anda/langs/vala/vala-language-server-nightly/vala-language-server-nightly.spec b/anda/langs/vala/vala-language-server-nightly/vala-language-server-nightly.spec index 40ccedbad5..f7b354feb6 100644 --- a/anda/langs/vala/vala-language-server-nightly/vala-language-server-nightly.spec +++ b/anda/langs/vala/vala-language-server-nightly/vala-language-server-nightly.spec @@ -3,7 +3,7 @@ %global commit 3b5fe941bea6ecd5c8fcb84930c40b8582eea165 %global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global commit_date %(date '+%Y%m%d') +%global commit_date 240218 %global snapshot_info %{commit_date}.%{shortcommit} %global verrel 0.48.7 diff --git a/anda/langs/vala/vala-lint-nightly/update.rhai b/anda/langs/vala/vala-lint-nightly/update.rhai index b964fdd1e5..dc9c066adc 100644 --- a/anda/langs/vala/vala-lint-nightly/update.rhai +++ b/anda/langs/vala/vala-lint-nightly/update.rhai @@ -1,7 +1,7 @@ if filters.contains("nightly") { - let req = new_req("https://api.github.com/repos/vala-lang/vala-lint/commits/HEAD"); - req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`); - let sha = json(req.get()).sha; - rpm.global("commit", sha); - rpm.release(); + rpm.global("commit", gh_commit("vala-lang/vala-lint")); + if rpm.changed() { + rpm.global("commit_date", date()); + rpm.release(); + } } diff --git a/anda/langs/vala/vala-lint-nightly/vala-lint-nightly.spec b/anda/langs/vala/vala-lint-nightly/vala-lint-nightly.spec index 10fa7ce48c..62c942888a 100644 --- a/anda/langs/vala/vala-lint-nightly/vala-lint-nightly.spec +++ b/anda/langs/vala/vala-lint-nightly/vala-lint-nightly.spec @@ -3,7 +3,7 @@ %global commit 8ae2bb65fe66458263d94711ae4ddd978faece00 %global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global commit_date %(date '+%Y%m%d') +%global commit_date 240218 %global snapshot_info %{commit_date}.%{shortcommit} Name: vala-lint-nightly diff --git a/anda/langs/vala/vala-nightly/update.rhai b/anda/langs/vala/vala-nightly/update.rhai index 9476b1ef67..4df0afe8bc 100644 --- a/anda/langs/vala/vala-nightly/update.rhai +++ b/anda/langs/vala/vala-nightly/update.rhai @@ -1,6 +1,7 @@ if filters.contains("nightly") { - let req = new_req("https://gitlab.gnome.org/api/v4/projects/1551/repository/branches/main"); - let sha = json(req.get()).commit.id; - rpm.global("commit", sha); - rpm.release(); + rpm.global("commit", gitlab_commit("gitlab.gnome.org", "1551", "main")); + if rpm.changed() { + rpm.global("commit_date", date()); + rpm.release(); + } } diff --git a/anda/langs/vala/vala-nightly/vala-nightly.spec b/anda/langs/vala/vala-nightly/vala-nightly.spec index e69d2bd676..06798e44c3 100644 --- a/anda/langs/vala/vala-nightly/vala-nightly.spec +++ b/anda/langs/vala/vala-nightly/vala-nightly.spec @@ -7,7 +7,7 @@ %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global repo https://gitlab.gnome.org/GNOME/%{real_name}.git -%global commit_date %(date '+%Y%m%d') +%global commit_date 240218 %global snapshot_info %{commit_date}.%{shortcommit} Name: vala-nightly diff --git a/anda/lib/deviceinfo/update.rhai b/anda/lib/deviceinfo/update.rhai index 377061e75b..746a91e404 100644 --- a/anda/lib/deviceinfo/update.rhai +++ b/anda/lib/deviceinfo/update.rhai @@ -1,3 +1,5 @@ let o = get("https://gitlab.com/api/v4/projects/24742019/repository/tags").json_arr()[0]; -rpm.global("commit", o.commit.id); rpm.version(o.name); +if rpm.changed() { + rpm.global("commit", o.commit.id); +} diff --git a/anda/lib/geonames/update.rhai b/anda/lib/geonames/update.rhai index 91e7ab6bf1..bece1c68b3 100644 --- a/anda/lib/geonames/update.rhai +++ b/anda/lib/geonames/update.rhai @@ -1,3 +1,5 @@ let o = get("https://gitlab.com/api/v4/projects/34230948/repository/tags").json_arr()[0]; -rpm.global("commit", o.commit.id); rpm.version(o.name); +if rpm.changed() { + rpm.global("commit", o.commit.id); +} diff --git a/anda/lib/openh264/update.rhai b/anda/lib/openh264/update.rhai index fee9014efa..82c75d7110 100644 --- a/anda/lib/openh264/update.rhai +++ b/anda/lib/openh264/update.rhai @@ -1,4 +1,4 @@ -rpm.global("commit1", get("https://api.github.com/repos/mozilla/gmp-api/commits/HEAD").json().sha); +rpm.global("commit1", gh_commit("mozilla/gmp-api")); let h264 = gh("cisco/openh264"); h264.crop(1); rpm.global("openh264_version", h264); diff --git a/anda/lib/tdlib/tdlib-nightly.spec b/anda/lib/tdlib/tdlib-nightly.spec index 03ebcdc1aa..893b777dd2 100644 --- a/anda/lib/tdlib/tdlib-nightly.spec +++ b/anda/lib/tdlib/tdlib-nightly.spec @@ -1,9 +1,9 @@ %global commit d0ff90bb19a235d9357f0874b0a62306e40d90b8 %global ver 1.8.25 +%global commit_date 240219 Name: tdlib-nightly -Version: %ver^%commit +Version: %ver^%commit_date.%commit Release: 1%?dist - License: BSL-1.0 URL: https://github.com/tdlib/td Summary: Cross-platform library for building Telegram clients diff --git a/anda/lib/tdlib/update.rhai b/anda/lib/tdlib/update.rhai index bb69634b77..005873e8d5 100644 --- a/anda/lib/tdlib/update.rhai +++ b/anda/lib/tdlib/update.rhai @@ -1,9 +1,8 @@ if filters.contains("nightly") { - let ghreq = new_req("https://api.github.com/repos/tdlib/td/commits/HEAD"); - ghreq.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`); - rpm.global("commit", json(ghreq.get()).sha); - let req = new_req("https://raw.githubusercontent.com/tdlib/td/master/CMakeLists.txt"); - let v = find("\nproject\\(TDLib\\s+VERSION\\s+([\\d.]+)\\s+", req.get(), 1); - rpm.global("ver", v); - rpm.release(); + rpm.global("commit", gh_commit("tdlib/td")); + if rpm.changed() { + let v = find("\nproject\\(TDLib\\s+VERSION\\s+([\\d.]+)\\s+", gh_rawfile("tdlib/td", "master", "CMakeLists.txt")), 1); + rpm.global("ver", v); + rpm.release(); + } } diff --git a/anda/misc/arrpc/update.rhai b/anda/misc/arrpc/update.rhai index 0c683bfb8a..e69f95c76d 100644 --- a/anda/misc/arrpc/update.rhai +++ b/anda/misc/arrpc/update.rhai @@ -1,2 +1,5 @@ let md = get("https://raw.githubusercontent.com/OpenAsar/arrpc/main/changelog.md"); rpm.version(find("(?m)^## v([\\d.]+)", md, 1)); +if rpm.changed() { + rpm.global("commit", gh_commit("OpenAsar/arrpc")); +} diff --git a/anda/misc/click/update.rhai b/anda/misc/click/update.rhai index 8afb40a9b2..f9f3b32b64 100644 --- a/anda/misc/click/update.rhai +++ b/anda/misc/click/update.rhai @@ -1,7 +1,5 @@ let o = get("https://gitlab.com/api/v4/projects/25034025/repository/tags").json_arr()[0]; -let f = rpm.f; rpm.version(o.name); -// check if changed -if rpm.f != f { +if rpm.changed() { rpm.global("commit", o.commit.id); } diff --git a/anda/system/avstplg/avstplg.spec b/anda/system/avstplg/avstplg.spec index 3df4bab628..79e4cbb141 100644 --- a/anda/system/avstplg/avstplg.spec +++ b/anda/system/avstplg/avstplg.spec @@ -1,10 +1,11 @@ %global commit 7cb289b6466b662fdf9f7d7ccc9f3c08a7dc0cac +%global commit_date 240219 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global debug_package %{nil} %define __os_install_post %{nil} Name: avstplg -Version: %shortcommit +Version: %commit_date.%shortcommit Release: 1%?dist License: Apache-2.0 @@ -41,4 +42,4 @@ install -Dm755 avstplg/build/bin/Release/net6.0/avstplg.dll %{buildroot}/%{_libd %changelog * Tue Jan 2 2024 infinitebash -- Initial package. \ No newline at end of file +- Initial package. diff --git a/anda/system/avstplg/update.rhai b/anda/system/avstplg/update.rhai index 958c0dfba0..55b5546bb0 100644 --- a/anda/system/avstplg/update.rhai +++ b/anda/system/avstplg/update.rhai @@ -1,6 +1,7 @@ if filters.contains("nightly") { - let req = new_req("https://api.github.com/repos/thesofproject/avsdk/commits/HEAD"); - req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`); - rpm.global("commit", json(req.get()).sha); - rpm.release(); -} \ No newline at end of file + rpm.global("commit", gh_commit("thesofproject/avsdk")); + if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); + } +} diff --git a/anda/system/nvidia-patch/nvidia-patch.spec b/anda/system/nvidia-patch/nvidia-patch.spec index 985f4062f1..639577ceec 100644 --- a/anda/system/nvidia-patch/nvidia-patch.spec +++ b/anda/system/nvidia-patch/nvidia-patch.spec @@ -1,11 +1,12 @@ %global debug_package %{nil} %global commit 564c0661a942f7163cb2cfa6cb1b14b4bcff3a30 %global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global commit_date 240218 %global patches %{_datadir}/src/nvidia-patch Name: nvidia-patch -Version: 0^%{shortcommit} +Version: 0^%commit_date.%{shortcommit} Release: 1%{?dist} Summary: NVENC and NvFBC patches for NVIDIA drivers diff --git a/anda/system/nvidia-patch/update.rhai b/anda/system/nvidia-patch/update.rhai index 5b4e723b15..3783aaf80a 100644 --- a/anda/system/nvidia-patch/update.rhai +++ b/anda/system/nvidia-patch/update.rhai @@ -1,4 +1,7 @@ if filters.contains("nightly") { - rpm.global("commit", get("https://api.github.com/repos/keylase/nvidia-patch/commits/HEAD").json().sha); - rpm.release(); + rpm.global("commit", gh_commit("keylase/nvidia-patch")); + if rpm.changed() { + rpm.global("commit_date", date()); + rpm.release(); + } } diff --git a/anda/tools/chromium-ectool/chromium-ectool.spec b/anda/tools/chromium-ectool/chromium-ectool.spec index d9388298e0..49bb056500 100644 --- a/anda/tools/chromium-ectool/chromium-ectool.spec +++ b/anda/tools/chromium-ectool/chromium-ectool.spec @@ -32,4 +32,4 @@ install -Dm755 build/host/util/ectool %{buildroot}%{_bindir}/ectool %changelog * Tue Jan 2 2024 infinitebash -- Initial package. \ No newline at end of file +- Initial package.