Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 323185

Summary: app-portage/gentoolkit: exit status from emerge is not returned
Product: Portage Development Reporter: Manuel Mommertz <2kmm>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Manuel Mommertz 2010-06-08 13:20:29 UTC
Exit status of revdep-rebuild is always 0 regardless of success of emerge.

From revdep-rebuild's code:

if (( $(<"$STATUS_FILE") != 0 )); then
...
exit $EMERGE_STATUS

where EMERGE_STATUS is never set. Should be

exit $(<"$STATUS_FILE")

to work.

Reproducible: Always

Steps to Reproduce:
Comment 1 michael@smith-li.com 2010-11-03 15:41:45 UTC
This bug was in first, but there is a lot more detail on the other...

*** This bug has been marked as a duplicate of bug 326923 ***