On 6 May 2014 04:22, Denis Silakov <[email protected]> wrote: > On 05/05/2014 09:02 PM, Robert Xu wrote: >> >> $ git clone https://github.com/robxu9/omvbootstrap >> cd omvbootstrap >> $ mkdir work/tmp work/rpm >> $ sudo ./omvbootstrap -d -a x86_64 -v 2014.0 -c 2014.0 -m >> >> http://mirror.yandex.ru/openmandriva/openmandriva2014.0/repository/x86_64/main/release >> It should create work directories automatically. >> Also, it should try to get a mirror in your country - although, I've >> noticed that there are quite a number of 2014.0 mirrors not working... > > > Well, there is at least a small mistake in scripts/mirror: > > local mirrorlist=$(echo $MIRRORLIST | sed -e s/VERSION/$VERSION/ | sed -e > s/ARCH/$ARCH/) > > replaces only first occurrence of VERSION, just add 'g' to sed command.
I know - there's only supposed to be one occurrence, I hope... but I guess I can see that being there just for safety. > > Another issue (at least for me) is that space is not replaced with > underscore at those mirrorlist that I can see - so I have "Russian > Federaion", not "Russian_Federation". Huh, interesting. I get United_States ok... > ... for me, it helps to additionally pass curl output through sed before > grepping for formattedCountry: > > (curl -s $mirrorlist | sed 's/ /_/g'| ... > Oh, then that's just the mirrorlist on the server side formatted badly. I'll add that in as a safety. -- cheers, Robert :: protocol.by/rxu
