From: "Zac Medico (zmedico)" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: systemd.eclass
Date: Thu, 28 Jul 2011 13:47:50 +0000 (UTC) [thread overview]
Message-ID: <20110728134750.A06B42004B@flycatcher.gentoo.org> (raw)
zmedico 11/07/28 13:47:50
Modified: systemd.eclass
Log:
systemd_dounit: fix for prefix
Revision Changes Path
1.7 eclass/systemd.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?rev=1.7&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?rev=1.7&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?r1=1.6&r2=1.7
Index: systemd.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- systemd.eclass 24 Jun 2011 13:13:24 -0000 1.6
+++ systemd.eclass 28 Jul 2011 13:47:50 -0000 1.7
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.6 2011/06/24 13:13:24 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.7 2011/07/28 13:47:50 zmedico Exp $
# @ECLASS: systemd.eclass
# @MAINTAINER:
@@ -47,10 +47,12 @@
# Install systemd unit(s). Uses doins, thus it is fatal in EAPI 4
# and non-fatal in earlier EAPIs.
systemd_dounit() {
+ has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
debug-print-function ${FUNCNAME} "${@}"
(
- insinto "$(systemd_get_unitdir)"
+ local ud=$(systemd_get_unitdir)
+ insinto "${ud#${EPREFIX}}"
doins "${@}"
)
}
next reply other threads:[~2011-07-28 14:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-28 13:47 Zac Medico (zmedico) [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-04-13 22:36 [gentoo-commits] gentoo-x86 commit in eclass: systemd.eclass Michal Gorny (mgorny)
2011-09-17 13:48 Michal Gorny (mgorny)
2011-06-24 13:13 Jeremy Olexa (darkside)
2011-06-19 16:05 Michal Gorny (mgorny)
2011-06-16 16:39 Michal Gorny (mgorny)
2011-06-11 6:06 Michal Gorny (mgorny)
2011-05-04 16:02 Michal Gorny (mgorny)
2011-05-04 10:53 Michal Gorny (mgorny)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110728134750.A06B42004B@flycatcher.gentoo.org \
--to=zmedico@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox