repo: nicer error message on librepo's perform() failure.

Related: RhBug:1118236
improved performance of excludes (RhBug:1109554)