Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: systemd.eclass
Date: Thu, 28 Jul 2011 14:04:21
Message-Id: 20110728134750.A06B42004B@flycatcher.gentoo.org
1 zmedico 11/07/28 13:47:50
2
3 Modified: systemd.eclass
4 Log:
5 systemd_dounit: fix for prefix
6
7 Revision Changes Path
8 1.7 eclass/systemd.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?rev=1.7&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?rev=1.7&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?r1=1.6&r2=1.7
13
14 Index: systemd.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v
17 retrieving revision 1.6
18 retrieving revision 1.7
19 diff -u -r1.6 -r1.7
20 --- systemd.eclass 24 Jun 2011 13:13:24 -0000 1.6
21 +++ systemd.eclass 28 Jul 2011 13:47:50 -0000 1.7
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2011 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.6 2011/06/24 13:13:24 darkside Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.7 2011/07/28 13:47:50 zmedico Exp $
27
28 # @ECLASS: systemd.eclass
29 # @MAINTAINER:
30 @@ -47,10 +47,12 @@
31 # Install systemd unit(s). Uses doins, thus it is fatal in EAPI 4
32 # and non-fatal in earlier EAPIs.
33 systemd_dounit() {
34 + has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
35 debug-print-function ${FUNCNAME} "${@}"
36
37 (
38 - insinto "$(systemd_get_unitdir)"
39 + local ud=$(systemd_get_unitdir)
40 + insinto "${ud#${EPREFIX}}"
41 doins "${@}"
42 )
43 }