Legacy, use rpmdbMatchIterator instead.
Transaction callback arguments need to change, so don't rely on this routine in the rpmcli API.