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.
It won't do this in its current implementation unless you specify
-x|--clean.
This line only recreates these folders during cleanup, but doesn't
create them if they are completely absent (e.g., when you run the script
for the first time):
[ $clean -ne 0 ] && rm -rf work && mkdir -p work/{tmp,rpm}
should be replaced with smth like
[ $clean -ne 0 ] && rm -rf work
[ -e work/tmp ] || mkdir -p work/tmp
[ -e work/rpm ] || mkdir -p work/rpm
--
Denis Silakov, ROSA Laboratory.
www.rosalab.ru