Friday, July 02, 2010

» 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/r

Labels: , ,

3 Comments:

Blogger Peter said...

Did you file a bug against zypper? Not handling redirects seems broken.

11:45  
Anonymous Anonymous said...

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

?

14:01  
Blogger Loki said...

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 ;)

23:41  

Post a Comment

<< Home