Thread: iLiad detecting ipkg errors?
View Single Post
Old 05-21-2008, 11:26 AM   #1
Martijn
Connoisseur
Martijn has learned how to read e-booksMartijn has learned how to read e-booksMartijn has learned how to read e-booksMartijn has learned how to read e-booksMartijn has learned how to read e-booksMartijn has learned how to read e-booksMartijn has learned how to read e-books
 
Martijn's Avatar
 
Posts: 68
Karma: 855
Join Date: Jan 2007
Location: Netherlands
Device: iLiad
detecting ipkg errors?

Hi,

I've been playing around with ipkg and installers and I ran into something:
If my postinst control script exits with an error, the ipkg program prints a nice ERROR, indicating that the script had an abnormal exit code, and terminates.
However, ipkg itself terminates with an exit code of 0, so I cannot detect from my installer script, which calls ipkg, that there was an error (at least not by inspecting the exit code).

Is there any way around this?
Martijn is offline   Reply With Quote