| 495 | } elseif {".html" != [file extension ${distfile}] && |
| 496 | "text/html" == [exec [findBinary file $portutil::autoconf::file_path] ${distpath}/${distfile} --brief --mime-type]} { |
| 497 | |
| 498 | # Probably a helpful DNS server sent us to its search results page |
| 499 | # instead of admitting that the server we asked for doesn't exist. |
| 500 | ui_debug [msgcat::mc "Fetching failed because we received an HTML page"] |
| 501 | file delete -force "${distpath}/${distfile}" |
| 502 | |
| 503 | # Continue on to try the next mirror, if any |