[pm-utils] Fixed line spacing in logs to be easier to read (log-line-spacing-fix patch) Resolves: rhbz#750755

Jaroslav Škarvada jskarvad at fedoraproject.org
Wed Nov 2 11:08:23 UTC 2011


commit 50b15d086cfd8dc8a0d811b030b1ef366db756c6
Author: Jaroslav Škarvada <jskarvad at redhat.com>
Date:   Wed Nov 2 12:08:18 2011 +0100

    Fixed line spacing in logs to be easier to read (log-line-spacing-fix patch)
    Resolves: rhbz#750755

 pm-utils-1.4.1-log-line-spacing-fix.patch |   14 ++++++++++++++
 pm-utils.spec                             |    9 ++++++++-
 2 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/pm-utils-1.4.1-log-line-spacing-fix.patch b/pm-utils-1.4.1-log-line-spacing-fix.patch
new file mode 100644
index 0000000..cf4fbe3
--- /dev/null
+++ b/pm-utils-1.4.1-log-line-spacing-fix.patch
@@ -0,0 +1,14 @@
+diff -up pm-utils-1.4.1/pm/pm-functions.in.orig pm-utils-1.4.1/pm/pm-functions.in
+--- pm-utils-1.4.1/pm/pm-functions.in.orig	2011-11-02 11:43:24.000000000 +0100
++++ pm-utils-1.4.1/pm/pm-functions.in	2011-11-02 11:43:49.987116603 +0100
+@@ -199,9 +199,9 @@ _run_hook() {
+ 	log "Running hook $*:"
+ 	hook_ok "$1" && "$@"
+ 	hook_status=$?
+-	log ""
+ 	log -n "$*: "
+ 	hook_exit_status $hook_status && LAST_HOOK="${1##*/}" || inhibit
++	log ""
+ }
+ 
+ if profiling; then
diff --git a/pm-utils.spec b/pm-utils.spec
index ab31964..1485eec 100644
--- a/pm-utils.spec
+++ b/pm-utils.spec
@@ -3,7 +3,7 @@ Name: pm-utils
 Summary: Power management utilities and scripts for Fedora
 License: GPLv2
 Version: 1.4.1
-Release: 12%{?dist}
+Release: 13%{?dist}
 Group: System Environment/Base
 URL: http://pm-utils.freedesktop.org
 %ifnarch s390 s390x
@@ -26,6 +26,8 @@ Patch1: pm-utils-1.4.1-networkmanager-typo-fix.patch
 Patch2: pm-utils-1.4.1-grub2.patch
 # Fix hooks exit code logging
 Patch3: pm-utils-1.4.1-hook-exit-code-log.patch
+# Fix line spacing in logs to be easier to read (#750755)
+Patch4: pm-utils-1.4.1-log-line-spacing-fix.patch
 
 %description
 The pm-utils package contains utilities and scripts useful for tasks related
@@ -49,6 +51,7 @@ tar -xzf %{SOURCE1}
 %patch1 -p1 -b .network-manager-typo-fix.patch
 %patch2 -p1 -b .grub2
 %patch3 -p1 -b .hook-exit-code-log
+%patch4 -p1 -b .log-line-spacing-fix
 
 %build
 %configure
@@ -107,6 +110,10 @@ rm -rf %{_localstatedir}/run/pm-utils/{pm-suspend,pm-powersave}/storage/*
 %{_libdir}/pkgconfig/pm-utils.pc
 
 %changelog
+* Wed Nov 02 2011 Jaroslav Škarvada <jskarvad at redhat.com> - 1.4.1-13
+- Fixed line spacing in logs to be easier to read (log-line-spacing-fix patch)
+  Resolves: rhbz#750755
+
 * Mon Aug 22 2011 Jaroslav Škarvada <jskarvad at redhat.com> - 1.4.1-12
 - Added support for grub2 in 01grub hook (grub2 patch)
 - Fixed hooks exit code logging (hook-exit-code-log patch)


More information about the scm-commits mailing list