From 6557c53ccca44e10144925f66eb07fe7d9367b4f Mon Sep 17 00:00:00 2001 From: Andreas Karatzas Date: Wed, 24 Dec 2025 22:42:11 +0000 Subject: [PATCH] remove the fallback to let script fail if branch not fetched and prevent installation of packages that are not strictly necessary Signed-off-by: Andreas Karatzas --- tools/install_torchcodec_rocm.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/install_torchcodec_rocm.sh b/tools/install_torchcodec_rocm.sh index 895325d51662f..f4a2554733c52 100755 --- a/tools/install_torchcodec_rocm.sh +++ b/tools/install_torchcodec_rocm.sh @@ -23,7 +23,7 @@ echo "TorchCodec not found. Installing from source..." install_system_deps() { if command -v apt-get &> /dev/null; then echo "Installing system dependencies..." - apt-get update && apt-get install -y \ + apt-get update && apt-get install -y --no-install-recommends \ pkg-config \ ffmpeg libavcodec-dev libavformat-dev libavutil-dev \ libswscale-dev libavdevice-dev libavfilter-dev libswresample-dev @@ -68,8 +68,7 @@ trap cleanup EXIT # Clone and build cd "$BUILD_DIR" echo "Cloning TorchCodec from $TORCHCODEC_REPO (branch: $TORCHCODEC_BRANCH)..." -git clone --depth 1 --branch "$TORCHCODEC_BRANCH" "$TORCHCODEC_REPO" torchcodec || \ - git clone --depth 1 "$TORCHCODEC_REPO" torchcodec +git clone --depth 1 --branch "$TORCHCODEC_BRANCH" "$TORCHCODEC_REPO" torchcodec cd torchcodec