Skip to content

Commit 7186980

Browse files
pypi: add blocklist from environment
1 parent a3f82e9 commit 7186980

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pypi.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ fi
1313
echo "Syncing to $TUNASYNC_WORKING_DIR"
1414

1515
if [[ $INIT == "0" ]]; then
16-
cat > $CONF << EOF
16+
(
17+
cat << EOF
1718
[mirror]
1819
directory = ${TUNASYNC_WORKING_DIR}
1920
master = ${TUNASYNC_UPSTREAM}
@@ -36,6 +37,10 @@ packages =
3637
tf-nightly-cpu
3738
pyagrum-nightly
3839
EOF
40+
for i in $PYPI_EXCLUDE; do
41+
echo " $i"
42+
done
43+
) > $CONF
3944
exec $BANDERSNATCH -c $CONF mirror
4045
else
4146
cat > $CONF << EOF

0 commit comments

Comments
 (0)