public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sys-power/pm-utils/files: 1.4.1-inhibit-on-right-status.patch
@ 2014-06-04 19:51 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; only message in thread
From: Samuli Suominen (ssuominen) @ 2014-06-04 19:51 UTC (permalink / raw
  To: gentoo-commits

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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-04 19:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-04 19:51 [gentoo-commits] gentoo-x86 commit in sys-power/pm-utils/files: 1.4.1-inhibit-on-right-status.patch Samuli Suominen (ssuominen)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox