» Shorter .repo URLs
A few days ago, I blogged about using
r.opensu.se for shorter package repository URLs, including passing e.g. http://r.opensu.se/network:utilities/11.2/r to zypper ar -r to add a repository.
Turned out it didn't work, because zypper wouldn't follow the redirect. So I rewrote that part by handing over such URLs to a CGI script that reverse proxies the .repo file from http://download.opensuse.org/repositories/ (it fetches the proper .repo URL and passes the result to zypper).
To cut the long story short, this stuff actually works now :):
zypper ar -r http://r.opensu.se/network:utilities/11.2/rLabels: opensuse, opensuse build service, zypper






3 Comments:
Did you file a bug against zypper? Not handling redirects seems broken.
I dont see the advantage.
The url is more cryptic, it is not really short and i dont know, if i could trust the server opensu.se.
why not integrating a default server in zypper itself and just call
zypper ar KDE:/KDE4:/Community/openSUSE_11.3/
instead of
zypper ar http://download.opensuse.org/repositories/KDE:/KDE4:/Community/openSUSE_11.3/KDE:KDE4:Community.repo
?
I personally find it extremely useful, because those links contain a lot less boilerplate. And because I'm lazy :D
If you don't like it, don't use it ;)
Post a Comment
<< Home