[99754] trunk/base/src/port1.0/portchecksum.tcl

Rainer Müller raimue at macports.org
Tue Nov 20 07:38:47 PST 2012


On 2012-11-16 15:06, Jeremy Lavergne wrote:
> In the case we think we know what's wrong (HTML was downloaded), it could also be handy to print out the originating mirror rather than have people go through debug log.

We are currently checking for HTML in the downloaded file during the
checksum phase only if the comparison of the checksum failed. At this
phase, we do not know the download URL used in the fetch phase
beforehand. To report the mirror used to download we would have to store
the mirror used for each downloaded distfile.

Also note that the check for HTML was mainly added for improper
configured DNS servers that serve some web server address that displays
a search page instead of returning the correct NXDOMAIN status [1]. It
would not necessarily help us to know which mirror was used for
downloading if this is some kind of login page for a specific (public)
network.

Rainer

[1] https://trac.macports.org/wiki/MisbehavingServers


More information about the macports-dev mailing list