Calculate digest for packages that lack it.