Retry download conditionally and remove sleep step
Retry download conditionally and remove sleep step

This is a performance improvement when local repository is not
accessible.

The sleep step was removed because in case of broken IP from DNS it
always tries same IP anyway.

Tojaj/librepo,Tojaj/librepo,rpm-software-management/librepo,rpm-software-management/librepo,rpm-software-management/librepo,Tojaj/librepo