On Wed, 17 Aug 2011 14:35:19 +0200
Charles <[email protected]> wrote:

> Hi,
> 
> I tested the automatic install with 2011.08.16 but it is failing
> while executing target_prepare_pacman.
> 
> I want to install the package only from the local core repository 
> without donwloading anything from a mirror.
> 
> The problem seems to be on line 36:
> [ -n "$MIRROR" ] && configure_mirrorlist runtime || return 1
> 
> If $MIRROR is unspecified, my case, this always ends with an exit
> code of 1.
> 
> Should it not be something like that:
> [ -n "$MIRROR" ] && configure_mirrorlist runtime
> 
> Thanks
> 
> Charles

Thanks,
fixed in git:

-       [ -n "$MIRROR" ] && configure_mirrorlist runtime || return 1
+       if [ -n "$MIRROR" ]; then
+               configure_mirrorlist runtime || return 1
+       fi

(the `|| return 1` is needed for propagating errorcodes so we know if a step 
failed because an important command during the step failed somewhere, 
potentially called in a "sub function")

Dieter

Reply via email to