Re: [gentoo-user] Emerge - success or error

2003-10-27 Thread Norbert Kamenicky
Stephan Linkel wrote: Norbert Kamenicky wrote: It's really trivial ... just write simple wrapper for it, i.e. like this: #!/bin/bash /usr/bin/emerge $* echo $? return-code-from-emerge Except of running emerge directly, you will run wrapper (with the same arguments) ... Yes, this would be

Re: [gentoo-user] Emerge - success or error

2003-10-26 Thread Stephan Linkel
Norbert Kamenicky wrote: It's really trivial ... just write simple wrapper for it, i.e. like this: #!/bin/bash /usr/bin/emerge $* echo $? return-code-from-emerge Except of running emerge directly, you will run wrapper (with the same arguments) ... Yes, this would be one option to do this. But,

Re: [gentoo-user] Emerge - success or error

2003-10-25 Thread Stephan Linkel
Ciaran McCreesh wrote: You can use the return code (I'm afraid I don't know Tcl, but in many other scripting languages the var is $?). If portage exited without errors, the value will be 0. If something went wrong, it'll be non-zero. No, I just can not use the return code, because my way to call

Re: [gentoo-user] Emerge - success or error

2003-10-25 Thread Norbert Kamenicky
Stephan Linkel wrote: No, I just can not use the return code, because my way to call the emerge does not allow this. I'd have to re-structure the whole prog the get the return code. So, there is no way the get the status of the last emerge like 'emerge status'? Or is there any way to redirect

[gentoo-user] Emerge - success or error

2003-10-24 Thread Stephan Linkel
Hi ML! I've got a problem: I want to write a little prog that emerges automatically a few packages (e.g. a 'emerge -uUD world') but skips failing packages and at the end shows me which packages were emerged succesfully and which not. So, my problem is the following: I use Tcl as program

Re: [gentoo-user] Emerge - success or error

2003-10-24 Thread Ciaran McCreesh
On Fri, 24 Oct 2003 15:46:13 +0200 Stephan Linkel [EMAIL PROTECTED] wrote: | How can I know if the emerge has finished successfully or if it | failed? Is there any string that emerge prints out at the very end of | a successful emerge process or is there a method that gives me the | status of the