Description of problem:
If I suspend yum with CTRL+Z and then later resume it, the TCP connection is
closed but yum does not notice that it has closed early, and tries to verify the
checksum and fails. So it starts downloading the file again from another mirror.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Press CTRL+Z while yum is downloading an rpm
2. Wait a while
3. Type "fg" to resume yum
[Errno -1] Package does not match checksum
Trying other mirror.
yum should notice that the connection has closed early, before the file has been
fully transferred, and use HTTP resume.
I think my best response here is, umm, don't do that.
Yum's using regets anyway so the download shouldn't be any larger.
(In reply to comment #1)
> I think my best response here is, umm, don't do that.
Not everyone has an always-on internet connection; even those who have one, may
want to pause their downloads so as to give priority to another user of the
connection. Is there another way to suspend yum without incurring this problem?
> Yum's using regets anyway so the download shouldn't be any larger.
It actually restarts from the beginning, every time, so yes, the download does
take longer. That's the real issue here.
are you sure it's restarting the whole download? it will show the whole progress
bar b/c yum is showing 100% download of the remaining parts but it doesn't
download the whole thing again.
You're right, it doesn't start from the beginning. I was confused by the
Which only leaves the error message, which is really NOTABUG because the package
indeed does not match the checksum. Marking NOTABUG.