» Even shorter openSUSE repository URLs: guessing the distro
I updated the documentation about even shorter and more portable URLs to openSUSE build service repositories. The thing is, the
zypp
stack (zypper
and YaST2) send the version of the openSUSE it is running on as an HTTP header when performing an "add repo" operation.
That is now used on the server side when a version is not specifically mentioned in the URL.
e.g.: zypper ar -r http://r.opensu.se/network:utilities.repo
Labels: opensuse, opensuse build service
2 Comments:
In openSUSE 11.3 this will be even easier:
zypper ar obs://X11:Compiz CompizRepo
where CompizRepo is simply the alias specified to identify the repo in the list.
Great job, I love it!:) Am I right, though, in saying that the redirect doesn't (yet, no doubt;)) handle hyphens and dots in repo names? See:
http://r.opensu.se/home:i-nZ/f
(http://download.opensuse.org/repositories/home:i-nZ/openSUSE_Factory resolves correctly)
and
http://r.opensu.se/OpenOffice.org:STABLE/11.3
(http://download.opensuse.org/repositories/OpenOffice.org:/STABLE/openSUSE_11.3/ resolves)
Once again, thanks for the great job anyway.
Post a Comment
<< Home