summaryrefslogtreecommitdiffstats
path: root/extra/pm-utils/pm-utils-02-loggin-append.patch
diff options
context:
space:
mode:
authorsibel <lesibel@free.fr>2011-05-23 09:04:23 +0200
committersibel <lesibel@free.fr>2011-05-23 09:04:23 +0200
commitbcd0153645655db6b258477e25ac1d183dafc55c (patch)
tree6874df3e2cfeae3fa8e1c4ed3097c0a1b4324ca4 /extra/pm-utils/pm-utils-02-loggin-append.patch
parent120d1e11c2e6817e78ed139fec6dda0b948ad47b (diff)
downloadnutyx-extra-bcd0153645655db6b258477e25ac1d183dafc55c.tar.gz
nutyx-extra-bcd0153645655db6b258477e25ac1d183dafc55c.tar.bz2
nutyx-extra-bcd0153645655db6b258477e25ac1d183dafc55c.tar.xz
nutyx-extra-bcd0153645655db6b258477e25ac1d183dafc55c.zip
pm-utils 1.4.1-1 ajout port
Diffstat (limited to 'extra/pm-utils/pm-utils-02-loggin-append.patch')
-rw-r--r--extra/pm-utils/pm-utils-02-loggin-append.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/extra/pm-utils/pm-utils-02-loggin-append.patch b/extra/pm-utils/pm-utils-02-loggin-append.patch
new file mode 100644
index 000000000..879c0ffdf
--- /dev/null
+++ b/extra/pm-utils/pm-utils-02-loggin-append.patch
@@ -0,0 +1,20 @@
+Author: James Westby <james.westby@ubuntu.com>
+Description: Do not clear the log file on each operation, but instead append to it.
+ This makes debugging of several suspends much easier.
+Bug: https://bugs.freedesktop.org/show_bug.cgi?id=25255
+Bug-Ubuntu: https://launchpad.net/bugs/410352
+
+Index: pm-utils/pm/pm-functions.in
+===================================================================
+--- pm-utils.orig/pm/pm-functions.in 2010-07-05 18:41:21.118322244 +0200
++++ pm-utils/pm/pm-functions.in 2010-07-05 18:41:24.126325221 +0200
+@@ -271,7 +271,7 @@
+ return 1
+ fi
+ export LOGGING=true
+- exec > "$1" 2>&1
++ exec >> "$1" 2>&1
+ }
+
+ check_suspend() { [ -n "$SUSPEND_MODULE" ]; }
+