Allow to correct upgrade repos (bnc#889791)

Old style client. Writing proper tests would mean quite a big refactoring (believe me, I started doing it), which looks like a too big change for maintenance (most likely to be distributed as DUD for SLE12). I agreed with @kobliha that in order to merge it should be manually tested by me (already done) and another person.

So I'm not only looking for code review but also for manual testing.
OK, so just switch to `alias`. `name` can be basically any string (or even empty IIRC). It's just a repository attribute which does not have any meaning beside being displayed to the user :wink: