mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
pypi_shadowmire: fix config generation
Signed-off-by: Harry Chen <i@harrychen.xyz>
This commit is contained in:
parent
5f4bc1c260
commit
2b05c2c376
@ -24,7 +24,12 @@ echo "Syncing to $REPO"
|
|||||||
DOWNLOAD_MIRROR=""
|
DOWNLOAD_MIRROR=""
|
||||||
if [[ $TUNASYNC_UPSTREAM != $PYPI_MASTER ]]; then
|
if [[ $TUNASYNC_UPSTREAM != $PYPI_MASTER ]]; then
|
||||||
# see https://github.com/pypa/bandersnatch/pull/928 for more info
|
# 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
|
fi
|
||||||
|
|
||||||
(
|
(
|
||||||
@ -33,7 +38,7 @@ cat << EOF
|
|||||||
repo = "${REPO}"
|
repo = "${REPO}"
|
||||||
sync_packages = true
|
sync_packages = true
|
||||||
${DOWNLOAD_MIRROR}
|
${DOWNLOAD_MIRROR}
|
||||||
use_pypi_index = true
|
${USE_PYPI_INDEX}
|
||||||
exclude = [
|
exclude = [
|
||||||
".+-nightly(-|$)",
|
".+-nightly(-|$)",
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user