fix TypeError in rpm.require.repository