Implement the rest of pkg_checksum.
Store digest format in meta file.
Reject old digests.
Allow getting the size of specific digest.
Fix digest update function.
Calculate pkg digest in pkg_checksum.c
Add olddigest field.
Fix upgrade script for repos.
Special support for pkg 1.2 repos.
Improve debug message.
Do not crash on package without reponame.