Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-power/pm-utils/files: 1.4.1-inhibit-on-right-status.patch
Date: Wed, 04 Jun 2014 19:51:54
Message-Id: 20140604195149.BFE182004F@flycatcher.gentoo.org
1 ssuominen 14/06/04 19:51:49
2
3 Added: 1.4.1-inhibit-on-right-status.patch
4 Log:
5 Inhibit on right status wrt #360673 by Gerard Neil
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
8
9 Revision Changes Path
10 1.1 sys-power/pm-utils/files/1.4.1-inhibit-on-right-status.patch
11
12 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
13 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
14
15 Index: 1.4.1-inhibit-on-right-status.patch
16 ===================================================================
17 Description: Do not use the exit status of log rather the exit status of the hook.
18
19 http://bugs.freedesktop.org/show_bug.cgi?id=32210
20 http://bugs.gentoo.org/360673
21
22 --- pm/pm-functions.in
23 +++ pm/pm-functions.in
24 @@ -197,9 +197,11 @@
25 # rest of args passed to hook unchanged.
26 log "Running hook $*:"
27 hook_ok "$1" && "$@"
28 + # log() changes the return value, so save it for later
29 + local status=$?
30 log ""
31 log -n "$*: "
32 - hook_exit_status $? && LAST_HOOK="${1##*/}" || inhibit
33 + hook_exit_status $status && LAST_HOOK="${1##*/}" || inhibit
34 }
35
36 if profiling; then