From 367875671af3881957a5c80929ca9db52b0ed8fb Mon Sep 17 00:00:00 2001 From: Shengqi Chen Date: Thu, 8 Aug 2024 16:48:51 +0800 Subject: [PATCH] pypi_shadowmire: adapt to latest version Signed-off-by: Shengqi Chen --- pypi_shadowmire.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pypi_shadowmire.sh b/pypi_shadowmire.sh index 2ddec4a..8e5eb6d 100755 --- a/pypi_shadowmire.sh +++ b/pypi_shadowmire.sh @@ -12,7 +12,7 @@ CONF="/tmp/shadowmire.conf" INIT=${INIT:-"0"} SHADOWMIRE_UPSTREAM=${SHADOWMIRE_UPSTREAM:-"0"} -export REPO="${TUNASYNC_WORKING_DIR}/web" +REPO="${TUNASYNC_WORKING_DIR}/web" if [ ! -d "$REPO" ]; then mkdir -p "$REPO" @@ -30,8 +30,10 @@ fi ( cat << EOF [options] +repo = ${REPO} sync_packages = true ${DOWNLOAD_MIRROR} +use_pypi_index = true exclude = [ ".+-nightly(-|$)", EOF