Repodiff is a python library and an utility to check sanity of metadata of a yum repository and comparation of two repositories.
python repo_diff.py --verbose test_repos/different_xml_and_sql/
python repo_diff.py --compare test_repos/sane_repo test_repos/sane_repo_2/