mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-19 11:42:43 +00:00
pypi: add blocklist from environment
This commit is contained in:
parent
a3f82e9ba0
commit
7186980db9
7
pypi.sh
7
pypi.sh
@ -13,7 +13,8 @@ fi
|
||||
echo "Syncing to $TUNASYNC_WORKING_DIR"
|
||||
|
||||
if [[ $INIT == "0" ]]; then
|
||||
cat > $CONF << EOF
|
||||
(
|
||||
cat << EOF
|
||||
[mirror]
|
||||
directory = ${TUNASYNC_WORKING_DIR}
|
||||
master = ${TUNASYNC_UPSTREAM}
|
||||
@ -36,6 +37,10 @@ packages =
|
||||
tf-nightly-cpu
|
||||
pyagrum-nightly
|
||||
EOF
|
||||
for i in $PYPI_EXCLUDE; do
|
||||
echo " $i"
|
||||
done
|
||||
) > $CONF
|
||||
exec $BANDERSNATCH -c $CONF mirror
|
||||
else
|
||||
cat > $CONF << EOF
|
||||
|
Loading…
x
Reference in New Issue
Block a user