Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,14 @@ jobs:
ps -C apt-get,dpkg,http,https,gpgv,store -o pid,etime,args || true
[ "$try" -lt 3 ] || break
sudo timeout 60 dpkg --configure -a || true
# The Azure mirror can be slow for hours (#101): the next try
# takes the next mirror and resumes the partial downloads
M=/etc/apt/apt-mirrors.txt
if grep -q 'azure\.archive' "$M" 2>/dev/null &&
[ "$(grep -v 'azure\.archive' "$M" | grep -c '://')" -gt 0 ]; then
sudo sed -i '/azure\.archive/d' "$M"
Comment thread
compot-dev marked this conversation as resolved.
echo "apt mirrors now:"; cat "$M"
fi
sleep 10
done
return 1
Expand Down Expand Up @@ -399,6 +407,14 @@ jobs:
ps -C apt-get,dpkg,http,https,gpgv,store -o pid,etime,args || true
[ "$try" -lt 3 ] || break
sudo timeout 60 dpkg --configure -a || true
# The Azure mirror can be slow for hours (#101): the next try
# takes the next mirror and resumes the partial downloads
M=/etc/apt/apt-mirrors.txt
if grep -q 'azure\.archive' "$M" 2>/dev/null &&
[ "$(grep -v 'azure\.archive' "$M" | grep -c '://')" -gt 0 ]; then
sudo sed -i '/azure\.archive/d' "$M"
echo "apt mirrors now:"; cat "$M"
fi
sleep 10
done
return 1
Expand Down
Loading