convert release int to string and fix KeyError in rpm.require.repository