From 0421c816badf8502a3abd6a82573b8d147690a44 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 9 Jun 2024 19:46:03 +0200 Subject: treewide: Simplify use of update-source-version - `--ignore-same-version` allows us to not call it twice. - with that, we can also omit version, to allow us updating e.g. `cargoDeps` hash --- pkgs/tools/video/recyclarr/update.sh | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) (limited to 'pkgs/tools/video/recyclarr/update.sh') diff --git a/pkgs/tools/video/recyclarr/update.sh b/pkgs/tools/video/recyclarr/update.sh index 83942439cc284..c9e5d5731992a 100755 --- a/pkgs/tools/video/recyclarr/update.sh +++ b/pkgs/tools/video/recyclarr/update.sh @@ -24,23 +24,8 @@ function get_hash() { nix hash to-sri "sha256:$pkg_hash" } -# aarch64-darwin -# reset version first so that all platforms are always updated and in sync -update-source-version recyclarr 0 "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" --system="aarch64-darwin" -update-source-version recyclarr "$latestVersion" $(get_hash osx arm64 "$latestVersion") --system="aarch64-darwin" - -# x86_64-darwin -# reset version first so that all platforms are always updated and in sync -update-source-version recyclarr 0 "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" --system="x86_64-darwin" -update-source-version recyclarr "$latestVersion" $(get_hash osx x64 "$latestVersion") --system="x86_64-darwin" - -# aarch64-linux -# reset version first so that all platforms are always updated and in sync -update-source-version recyclarr 0 "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" --system="aarch64-linux" -update-source-version recyclarr "$latestVersion" $(get_hash linux arm64 "$latestVersion") --system="aarch64-linux" - -# x86_64-linux -# reset version first so that all platforms are always updated and in sync -update-source-version recyclarr 0 "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" --system="x86_64-linux" -update-source-version recyclarr "$latestVersion" $(get_hash linux x64 "$latestVersion") --system="x86_64-linux" +update-source-version recyclarr "$latestVersion" $(get_hash osx arm64 "$latestVersion") --system="aarch64-darwin" --ignore-same-version +update-source-version recyclarr "$latestVersion" $(get_hash osx x64 "$latestVersion") --system="x86_64-darwin" --ignore-same-version +update-source-version recyclarr "$latestVersion" $(get_hash linux arm64 "$latestVersion") --system="aarch64-linux" --ignore-same-version +update-source-version recyclarr "$latestVersion" $(get_hash linux x64 "$latestVersion") --system="x86_64-linux" --ignore-same-version -- cgit 1.4.1