Skip to content

Commit

Permalink
Poison only standard pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
gmou3 committed Jan 17, 2025
1 parent eb6a95e commit e887ab3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions build/bin/sage-spkg
Original file line number Diff line number Diff line change
Expand Up @@ -603,17 +603,15 @@ case "$PKG_SRC" in
esac
# Poison the proxy variable to forbid downloads in spkg-install
# for normal non-optional packages
if [ "$PKG_TYPE" != "optional" ]; then
case $PKG_SRC_TYPE in
normal|wheel)
# for normal/wheel standard packages
case "$PKG_TYPE:$PKG_SRC_TYPE" in
standard:normal|standard:wheel)
export http_proxy=http://192.0.2.0:5187/
export https_proxy=$http_proxy
export ftp_proxy=$http_proxy
export rsync_proxy=$http_proxy
;;
esac
fi
esac
# Make sage-logger show the full logs
unset SAGE_SILENT_BUILD
Expand Down

0 comments on commit e887ab3

Please sign in to comment.