Mailinglist Archive: zypp-devel (66 mails)

< Previous Next >
Re: [zypp-devel] How to add multiple baseurl=URIs to zypper repo from command line?
  • From: PGNet <pgnet.trash+osyast@xxxxxxxxx>
  • Date: Wed, 4 Feb 2009 10:16:07 -0800
  • Message-id: <dbd51810902041016t7322ad8el2686eec67c38d240@xxxxxxxxxxxxxx>
Does the multiple url stuff really works? I have never tested it, it has
never been an official feature.

I was thinking that we may enhance it by using Url::downloads() and skip
urls based on network status.

"really work". good question ...

well, i'd had a repeatedly failing repo this morning, and added a
second baseurl.

it then worked.

what i did NOT check, is whether it actually failed-over.

checking with,

cat OS11-update.repo
[OS11-update]
name=OS11-update
enabled=1
autorefresh=1
baseurl=http://suse.mirrors.tds.net/pub/opensuse/update/11.1X
baseurl=ftp://suse.mirrors.tds.net/pub/opensuse/update/11.1
type=rpm-md
priority=30
keeppackages=0

the 1st URI should fail ...

zypper clean OS11-update
Specified repositories have been cleaned up.

zypper -vvvvv ref OS11-update
Verbosity: 5
Non-option program arguments: 'OS11-update'
Initializing Target
Specified repositories: OS11-update
Checking whether to refresh metadata for OS11-update
Retrieving:
ftp://suse.mirrors.tds.net/pub/opensuse/update/11.1/repodata/repomd.xml
[done]
Repository 'OS11-update' is up to date.
Specified repositories have been refreshed.

if i s/11.1X/11.1/g, then,
zypper clean OS11-update
zypper -vvvvv ref OS11-update

i get the same,

zypper -vvvvv ref OS11-update
Verbosity: 5
Non-option program arguments: 'OS11-update'
Initializing Target
Specified repositories: OS11-update
Checking whether to refresh metadata for OS11-update
Retrieving:
ftp://suse.mirrors.tds.net/pub/opensuse/update/11.1/repodata/repomd.xml
[done (714 B/s)]
Repository 'OS11-update' is up to date.
Specified repositories have been refreshed.

so, it looks like the answer to your question is, "no".

and i've been just lucky :-/
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups