Fix repo metadata downloading

Adapt to the API change in librepo