From ab4392e2f7735b0062c1a9d38646a5fa2b3ea4b2 Mon Sep 17 00:00:00 2001 From: Lloyd Date: Thu, 27 Nov 2025 16:01:54 +0000 Subject: [PATCH] fix: force reinstall Python package and disable cache during installation and upgrade --- manage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manage.sh b/manage.sh index 651b890..c496f41 100644 --- a/manage.sh +++ b/manage.sh @@ -241,7 +241,7 @@ install_repeater() { echo "75"; echo "# Installing Python package..." cd "$INSTALL_DIR" - pip install --break-system-packages -e . >/dev/null 2>&1 + pip install --break-system-packages --force-reinstall --no-cache-dir -e . >/dev/null 2>&1 echo "85"; echo "# Starting service..." systemctl enable "$SERVICE_NAME" @@ -346,7 +346,7 @@ upgrade_repeater() { echo "[6/9] Updating Python package..." cd "$INSTALL_DIR" # Use timeout to prevent hanging and show output - timeout 120 pip install --break-system-packages -e . || { + timeout 120 pip install --break-system-packages --force-reinstall --no-cache-dir -e . || { echo " ⚠ Python package install timed out or failed, continuing..." } echo " ✓ Python package updated"