[Yum] ftp repo login/logout

Paul Pianta pantz at lqt.ca
Wed Aug 11 19:00:09 UTC 2004


Michael Stenner wrote:

> One "trick" you could pull to ignore
>
>auth failures and not use a repo is this:
>
>  1) create an empty repo (run yum-arch on an empty directory
>  2) in your yum conf, in a single repo section, specify two baseurls
>     for failover.  The first is your authed repo, and the second is
>     the public empty repo.
>  3) set the failover policy to priority
>
>When yum hits the first one and fails, it will move onto the second
>one, which is a legitimate repo... it just doesn't have any packages.
>  
>
Mmmm - nice trick. Now you've got me thinking ...

>Now, I don't claim this is a pretty solution, but it would probably
>work :)  Note that it may have wacky side effects if your real repo
>can't be reached for some OTHER reason.
>  
>
'Pretty' is not really a significant factor anyway - my ftp solution had 
been hit by the ugly stick several times before stumbling out onto the 
road into the path of an oncoming ugly truck :\

thanks

pantz

-- 
Before you criticize someone, walk a mile in their shoes ...
That way when you do criticize them, you're a mile away and you have their shoes!




More information about the Yum mailing list