On 9/4/06, Fábio Mierlo <[EMAIL PROTECTED]> wrote:
> Will be cool a flag in ChrootCompile that enter in
> a chrooted bash for debug purposes before die.
>
> I'm commenting and uncommenting the follow line
> to do that, but it isn't working very well.
>
> #in_chroot Compile --batch --no-web --no-symlink --no-sign $crossopts
> $name $version || die "Compilation failed."
> in_chroot Compile --batch --no-web --no-symlink --no-sign $crossopts
> $name $version || in_chroot bash && die "Compilation failed."
>
> For example if the last executed command in the
> bash isn't found it do not run the "die" and it pack
> the not sucefull compiled  program.

From a syntax standpoint, try this instead:
in_chroot Compile --batch --no-web --no-symlink --no-sign $crossopts
$name $version || (in_chroot bash ; die "Compilation failed.")

That should always execute the "die" if the Compile fails, regardless
of the return code of bash.

I agree that it'd be a good option to have if it can help figure out
what's going wrong on a compile. (Although, by default we'd use zsh
instead of bash, right? :-) or maybe some variable indicating one's
preference...)
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to