On Thu, Feb 05, 2009 at 03:07:03PM +0100, Jan Kupec wrote:
Duncan Mac-Vicar Prett wrote:
Lukas Ocilka wrote:
I can't see any possibility for multiple baseurl entries in .repo file (or any other entry) in the documentation: http://en.opensuse.org/Standards/RepoInfo
Well, the first guys implementing the "standard" (yum) do actually support multiple urls. libzypp supports it code-wise, but it is not a feature, mainly because the behavior is undefined:
from yum man page:
*baseurl* Must be a URL to the directory where the yum repository's 'repodata' directory lives. Can be an http://, ftp:// or file:// URL. You can specify multiple URLs in one baseurl statement. The best way to do this is like this: [repositoryid] name=Some name for this repository baseurl=url://server1/path/to/repository/ url://server2/path/to/repository/ url://server3/path/to/repository/
If you list more than one baseurl= statement in a repository you will find yum will ignore the earlier ones and probably act bizarrely. Don't do this, you've been warned.
eh. So do we do:
baseurl=url://server1/path/to/repository/ url://server2/path/to/repository/
or
baseurl=url://server1/path/to/repository/ baseurl=url://server2/path/to/repository/
I guess the former, according to the yum help. That means fixing in libzypp's RepoFileReader, IIRC?
I can confirm that the former works with yum. I do use baseurl=http://hostname1/... http://hostname2/... ^ spaces on servers that share a common repo file with a list of repositories, but where some of the hosts can only reach hostname1 and other hosts can only reach hostname2. (Restrictions inherent to network setup make it impossible to use the same URL on all servers, but this way I still can share an exact copy of the repo file on all of them.) It would be nice if this works in libzypp as well. Peter -- "WARNING: This bug is visible to non-employees. Please be respectful!" SUSE LINUX Products GmbH Research & Development