Gentoo Archives: gentoo-commits

From: "Nirbheek Chauhan (nirbheek)" <nirbheek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: nsplugins.eclass
Date: Fri, 01 May 2009 21:50:47
Message-Id: E1M00d2-0000d6-RN@stork.gentoo.org
1 nirbheek 09/05/01 21:50:44
2
3 Modified: nsplugins.eclass
4 Log:
5 Fix quoting issues, patch by maekke -- bug 258217
6
7 Revision Changes Path
8 1.23 eclass/nsplugins.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/nsplugins.eclass?rev=1.23&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/nsplugins.eclass?rev=1.23&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/nsplugins.eclass?r1=1.22&r2=1.23
13
14 Index: nsplugins.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v
17 retrieving revision 1.22
18 retrieving revision 1.23
19 diff -u -r1.22 -r1.23
20 --- nsplugins.eclass 4 Aug 2005 21:55:06 -0000 1.22
21 +++ nsplugins.eclass 1 May 2009 21:50:44 -0000 1.23
22 @@ -1,6 +1,6 @@
23 -# Copyright 1999-2004 Gentoo Foundation
24 +# Copyright 1999-2009 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 -# $Header: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v 1.22 2005/08/04 21:55:06 azarah Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v 1.23 2009/05/01 21:50:44 nirbheek Exp $
28 #
29 # Author: Martin Schlemmer <azarah@g.o>
30 #
31 @@ -20,8 +20,8 @@
32 # Move plugins dir. We use keepdir so that it might not be unmerged
33 # by mistake ...
34 keepdir /usr/$(get_libdir)/${PLUGINS_DIR}
35 - cp -a ${D}/$1/* ${D}/usr/$(get_libdir)/${PLUGINS_DIR}
36 - rm -rf ${D}/$1
37 + cp -a "${D}"/$1/* "${D}"/usr/$(get_libdir)/${PLUGINS_DIR}
38 + rm -rf "${D}"/$1
39 dosym /usr/$(get_libdir)/${PLUGINS_DIR} $1
40 }
41
42 @@ -31,11 +31,11 @@
43 pkg_mv_plugins() {
44
45 # Move old plugins dir
46 - if [ -d "${ROOT}/$1" -a ! -L "${ROOT}/$1" ]
47 + if [[ -d "${ROOT}/$1" -a ! -L "${ROOT}/$1" ]]
48 then
49 - mkdir -p ${ROOT}/usr/$(get_libdir)/${PLUGINS_DIR}
50 - cp -a ${ROOT}/$1/* ${ROOT}/usr/$(get_libdir)/${PLUGINS_DIR}
51 - rm -rf ${ROOT}/$1
52 + mkdir -p "${ROOT}"/usr/$(get_libdir)/${PLUGINS_DIR}
53 + cp -a "${ROOT}"/$1/* "${ROOT}"/usr/$(get_libdir)/${PLUGINS_DIR}
54 + rm -rf "${ROOT}"/$1
55 fi
56 }