ssuominen 14/06/04 19:51:49 Added: 1.4.1-inhibit-on-right-status.patch Log: Inhibit on right status wrt #360673 by Gerard Neil (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
Revision Changes Path 1.1 sys-power/pm-utils/files/1.4.1-inhibit-on-right-status.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-inhibit-on-right-status.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/files/1.4.1-inhibit-on-right-status.patch?rev=1.1&content-type=text/plain Index: 1.4.1-inhibit-on-right-status.patch =================================================================== Description: Do not use the exit status of log rather the exit status of the hook. http://bugs.freedesktop.org/show_bug.cgi?id=32210 http://bugs.gentoo.org/360673 --- pm/pm-functions.in +++ pm/pm-functions.in @@ -197,9 +197,11 @@ # rest of args passed to hook unchanged. log "Running hook $*:" hook_ok "$1" && "$@" + # log() changes the return value, so save it for later + local status=$? log "" log -n "$*: " - hook_exit_status $? && LAST_HOOK="${1##*/}" || inhibit + hook_exit_status $status && LAST_HOOK="${1##*/}" || inhibit } if profiling; then