[MacPorts] #29683: Failed downloads still marked as completed
MacPorts
noreply at macports.org
Thu Jun 2 03:49:48 PDT 2011
#29683: Failed downloads still marked as completed
---------------------------------------+------------------------------------
Reporter: joe@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 1.9.2
Keywords: | Port:
---------------------------------------+------------------------------------
Changes (by ryandesign@…):
* component: ports => base
Old description:
> When macports fails to download a file correctly (but does receive
> something, eg an html file due to a misconfigured proxy), the download is
> still marked as completed and does not get re-attempted, see log section:
>
> ---> Dependencies to be installed: py27-distribute py27-numpy atlas
> gcc44 gcc_select gzip fftw-3 py27-nose
> DEBUG: Starting logging for py27-distribute
> DEBUG: Executing org.macports.main (py27-distribute)
> DEBUG: Skipping completed org.macports.fetch (py27-distribute)
> ---> Verifying checksum(s) for py27-distribute
> DEBUG: checksum phase started at Thu Jun 2 09:31:26 BST 2011
> DEBUG: Executing org.macports.checksum (py27-distribute)
> ---> Checksumming distribute-0.6.18.tar.gz
> Error: Checksum (md5) mismatch for distribute-0.6.18.tar.gz
> Portfile checksum: distribute-0.6.18.tar.gz md5
> 9c9d7489136fe8b57950dd827c979fff
> Distfile checksum: distribute-0.6.18.tar.gz md5
> e5bc1e56c435da931fc3121aaa130397
>
> Because of this, subsequent attempts to install this file assume the
> download has already completed and skip direct to the checksum phase
> which will obviously fail.
>
> Similarly deleting the file still assumes the download is successful, so
> the checksum phase again fails this time because the file is not present
> at all.
>
> The download *should* never be considered as completed until the checksum
> has been verified! If a download fails, subsequent installation attempts
> should delete the corrupted file and try again to download (allowing the
> user to correct the problem in between).
>
> There is no obvious way to force a redownload of the file.
New description:
When macports fails to download a file correctly (but does receive
something, eg an html file due to a misconfigured proxy), the download is
still marked as completed and does not get re-attempted, see log section:
{{{
---> Dependencies to be installed: py27-distribute py27-numpy atlas gcc44
gcc_select gzip fftw-3 py27-nose
DEBUG: Starting logging for py27-distribute
DEBUG: Executing org.macports.main (py27-distribute)
DEBUG: Skipping completed org.macports.fetch (py27-distribute)
---> Verifying checksum(s) for py27-distribute
DEBUG: checksum phase started at Thu Jun 2 09:31:26 BST 2011
DEBUG: Executing org.macports.checksum (py27-distribute)
---> Checksumming distribute-0.6.18.tar.gz
Error: Checksum (md5) mismatch for distribute-0.6.18.tar.gz
Portfile checksum: distribute-0.6.18.tar.gz md5
9c9d7489136fe8b57950dd827c979fff
Distfile checksum: distribute-0.6.18.tar.gz md5
e5bc1e56c435da931fc3121aaa130397
}}}
Because of this, subsequent attempts to install this file assume the
download has already completed and skip direct to the checksum phase which
will obviously fail.
Similarly deleting the file still assumes the download is successful, so
the checksum phase again fails this time because the file is not present
at all.
The download *should* never be considered as completed until the checksum
has been verified! If a download fails, subsequent installation attempts
should delete the corrupted file and try again to download (allowing the
user to correct the problem in between).
There is no obvious way to force a redownload of the file.
--
--
Ticket URL: <https://trac.macports.org/ticket/29683#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list