Add packages checksums to digest file.
Use checksums for repo update.
Fix processing by striping trailing \n.