On 05/06/2014 12:22 PM, Denis Silakov 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.

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".

... for me, it helps to additionally pass curl output through sed before grepping for formattedCountry:

(curl -s $mirrorlist | sed 's/ /_/g'| ...

--
Denis Silakov, ROSA Laboratory.
www.rosalab.ru


Reply via email to