]> gitweb.factorcode.org Git - factor.git/commitdiff
build.sh: Fix hang because of wget/ipv6 on some of my machines.
authorDoug Coleman <doug.coleman@gmail.com>
Fri, 16 Dec 2022 22:02:08 +0000 (16:02 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 16 Dec 2022 22:03:51 +0000 (16:03 -0600)
My linux box prefers an ipv6 address for some reason which doesn't resolve.

Might need to update factorcode ipv6 settings, too.

build.sh

index 8cccdbe5b774ed29196d448637e2a4db4b3f833b..1f03523e4e1ec12843fa7ba48f45918e1df66625 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -595,7 +595,7 @@ current_git_branch() {
 
 check_url() {
     if [[ $DOWNLOADER_NAME == 'wget' ]]; then
-        if [[ $(wget -S --spider $1 2>&1 | grep 'HTTP/1.1 200 OK') ]]; then
+        if [[ $(wget -S --spider --prefer-family=IPv4 $1 2>&1 | grep 'HTTP/1.1 200 OK') ]]; then
             return 0
         else
             return 1
@@ -614,7 +614,9 @@ check_url() {
 set_boot_image_vars() {
     set_current_branch
     local url="https://downloads.factorcode.org/images/${CURRENT_BRANCH}/checksums.txt"
+    $ECHO "Getting checksum from ${url}"
     check_url $url
+    $ECHO "got checksum!"
     if [[ $? -eq 0 ]]; then
         CHECKSUM_URL="$url"
         BOOT_IMAGE_URL="https://downloads.factorcode.org/images/${CURRENT_BRANCH}/${BOOT_IMAGE}"