FS#5909 - pacman3: corrupted package action
Attached to Project:
Pacman
Opened by James Rayner (iphitus) - Tuesday, 28 November 2006, 11:58 GMT
Last edited by Roman Kyrylych (Romashka) - Monday, 14 May 2007, 18:33 GMT
Opened by James Rayner (iphitus) - Tuesday, 28 November 2006, 11:58 GMT
Last edited by Roman Kyrylych (Romashka) - Monday, 14 May 2007, 18:33 GMT
|
Details
checking package integrity...
:: Archive gcc-4.1.2-1.pkg.tar.gz is corrupted. Do you want to delete it? [Y/n] error: failed to commit transaction (corrupted package) archive gcc-4.1.2-1.pkg.tar.gz was corrupted (bad MD5 or SHA1 checksum) errors occurred, no packages were upgraded. good to see pacman3 doing something slightly more intelligent than barfing right away, but maybe the option would be much better as: "do you want to delete and redownload?" James |
This task depends upon
At the minimum, I certainly wouldn't be asking the user if they want to delete the file, since I can't think of a use case where the user would want a corrupt file retained. I can understand potentially asking if the user wants to redownload it since it can be a huge download like openoffice - but realistically the user is probably going to try redownloading again anyway, otherwise they won't know if the file on the server is corrupt or just their download of it.
Pacman now queries if you want to delete the package, but redownloading is done on the next attempt at installing it.