From ab8605a62fc88255dbcc079a16102f17dbe5e704 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 18 Jul 2025 18:14:34 +0200 Subject: build({update.sh,crates/{libmpv2,yt_dlp}/update.sh}): Remove pointless update instructions We only need to explicitly update the creates that are not part of the workspace. --- crates/libmpv2/update.sh | 4 ---- crates/yt_dlp/crates/pyo3-pylogger/update.sh | 7 +++++++ crates/yt_dlp/update.sh | 4 +--- update.sh | 2 -- 4 files changed, 8 insertions(+), 9 deletions(-) create mode 100755 crates/yt_dlp/crates/pyo3-pylogger/update.sh diff --git a/crates/libmpv2/update.sh b/crates/libmpv2/update.sh index ecd5aa8..591684a 100755 --- a/crates/libmpv2/update.sh +++ b/crates/libmpv2/update.sh @@ -10,8 +10,4 @@ # You should have received a copy of the License along with this program. # If not, see . -cd "$(dirname "$0")" || exit 1 -[ "$1" = "upgrade" ] && cargo upgrade --incompatible -cargo update - ./libmpv2-sys/update.sh "$@" diff --git a/crates/yt_dlp/crates/pyo3-pylogger/update.sh b/crates/yt_dlp/crates/pyo3-pylogger/update.sh new file mode 100755 index 0000000..2586afe --- /dev/null +++ b/crates/yt_dlp/crates/pyo3-pylogger/update.sh @@ -0,0 +1,7 @@ +#! /usr/bin/env sh + +cd "$(dirname "$0")" || exit 1 +[ "$1" = "upgrade" ] && cargo upgrade --incompatible +cargo update + +# vim: ft=sh diff --git a/crates/yt_dlp/update.sh b/crates/yt_dlp/update.sh index c1a0215..ab03b62 100755 --- a/crates/yt_dlp/update.sh +++ b/crates/yt_dlp/update.sh @@ -10,6 +10,4 @@ # You should have received a copy of the License along with this program. # If not, see . -cd "$(dirname "$0")" || exit 1 -[ "$1" = "upgrade" ] && cargo upgrade --incompatible -cargo update +./crates/pyo3-pylogger/update.sh "$@" diff --git a/update.sh b/update.sh index 6672566..e90b290 100755 --- a/update.sh +++ b/update.sh @@ -15,8 +15,6 @@ nix flake update [ "$1" = "upgrade" ] && cargo upgrade --incompatible allow --pinned allow --recursive true cargo update --recursive -# TODO: Not all of these update are currently needed. <2024-11-04> ./crates/yt_dlp/update.sh "$@" ./crates/libmpv2/update.sh "$@" -./crates/bytes/update.sh "$@" # vim: ft=sh -- cgit 1.4.1