about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-18 18:14:34 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-18 18:15:59 +0200
commitab8605a62fc88255dbcc079a16102f17dbe5e704 (patch)
treeee2876f098cc5e3f6c8501edb69b206f4daa75e0
parentfix(crates/yt/db/insert/maintenance): Re-init (diff)
downloadyt-ab8605a62fc88255dbcc079a16102f17dbe5e704.zip
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.
-rwxr-xr-xcrates/libmpv2/update.sh4
-rwxr-xr-xcrates/yt_dlp/crates/pyo3-pylogger/update.sh7
-rwxr-xr-xcrates/yt_dlp/update.sh4
-rwxr-xr-xupdate.sh2
4 files changed, 8 insertions, 9 deletions
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 <https://www.gnu.org/licenses/gpl-3.0.txt>.
 
-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 <https://www.gnu.org/licenses/gpl-3.0.txt>.
 
-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