[pacman-dev] alpm_pkg_checkmd5sum

Allan McRae mcrae_allan at hotmail.com
Sun Dec 23 00:22:31 EST 2007


Hi,

I was looking at FS#7155 (http://bugs.archlinux.org/task/7155) which I 
believe to be fixed now but during then I notice some left overs from 
what appears to be a rewrite of the md5sum checking.

In the bug report, it was asking for more information than "error: 
failed to commit transaction (invalid or corrupted package)".  Trying to 
look at this I noticed that the "invalid of corrupted package" part can 
only generated by alpm_pkg_checkmd5sum() which is not used anywhere.  
The "error: failed to commit transaction" part is generated by 
sync_trans() if alpm_trans_commit() fails which in this case can be 
followed through to test_md5sum() failing.  So it looks like md5sum 
checking was overhauled at some stage.

So my question is: Is alpm_pkg_checkmd5sum() a leftover of the past and 
need removing?

Cheers,
Allan






More information about the pacman-dev mailing list