Revert "distro: remove convert_rpmdb_hash."

This reverts commit 755e51a1f791ff9054701680a28f4c353ec12f4d.