Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-laptop/laptop-mode-tools/files: laptop-mode-tools-1.47-install.patch
Date: Sat, 28 Feb 2009 18:56:34
Message-Id: E1LdUMR-0000Ne-PD@stork.gentoo.org
1 dirtyepic 09/02/28 18:56:31
2
3 Added: laptop-mode-tools-1.47-install.patch
4 Log:
5 Fix breakage. Bug #260652.
6 (Portage version: 2.2_rc23/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.47-install.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.47-install.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.47-install.patch?rev=1.1&content-type=text/plain
13
14 Index: laptop-mode-tools-1.47-install.patch
15 ===================================================================
16 diff -Naurp laptop-mode-tools_1.47-orig/install.sh laptop-mode-tools_1.47/install.sh
17 --- laptop-mode-tools_1.47-orig/install.sh 2009-01-26 13:45:20.000000000 -0600
18 +++ laptop-mode-tools_1.47/install.sh 2009-02-28 12:45:47.000000000 -0600
19 @@ -183,7 +183,7 @@ fi
20 # Install pm-utils hook only if pm-utils config dir is present, or force the
21 # install if we have a DESTDIR.
22 if [ -n "$DESTDIR" -o -d "$DESTDIR/etc/pm/sleep.d" ] ; then
23 - if ( ! $INSTALL -m 755 etc/pm/sleep.d/99laptop-mode "$DESTDIR/etc/pm/sleep.d" ) ; then
24 + if ( ! $INSTALL -D -m 755 etc/pm/sleep.d/99laptop-mode "$DESTDIR/etc/pm/sleep.d/99laptop-mode" ) ; then
25 echo "$0: Failed to install 99-laptop-mode into /etc/pm/sleep.d. Installation failed."
26 exit 36
27 fi