Skip to content

Commit

Permalink
pypi_shadowmire: fix config generation
Browse files Browse the repository at this point in the history
Signed-off-by: Harry Chen <i@harrychen.xyz>
  • Loading branch information
Harry-Chen committed Aug 19, 2024
1 parent 5f4bc1c commit 2b05c2c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pypi_shadowmire.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ echo "Syncing to $REPO"
DOWNLOAD_MIRROR=""
if [[ $TUNASYNC_UPSTREAM != $PYPI_MASTER ]]; then
# see https://github.com/pypa/bandersnatch/pull/928 for more info
DOWNLOAD_MIRROR="shadowmire_upstream = ${TUNASYNC_UPSTREAM}"
DOWNLOAD_MIRROR="shadowmire_upstream = \"${TUNASYNC_UPSTREAM}\""
fi

USE_PYPI_INDEX=""
if [[ $SHADOWMIRE_USE_PYPI_INDEX == "1" ]]; then
USE_PYPI_INDEX="use_pypi_index = true"
fi

(
Expand All @@ -33,7 +38,7 @@ cat << EOF
repo = "${REPO}"
sync_packages = true
${DOWNLOAD_MIRROR}
use_pypi_index = true
${USE_PYPI_INDEX}
exclude = [
".+-nightly(-|$)",
EOF
Expand Down

0 comments on commit 2b05c2c

Please sign in to comment.