From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/netifrc:master commit in: sh/
Date: Fri, 16 Jan 2015 18:16:08 +0000 (UTC) [thread overview]
Message-ID: <1421432159.8ac4bdbd7b752c6a0805559d4644824d1f5c9603.robbat2@OpenRC> (raw)
commit: 8ac4bdbd7b752c6a0805559d4644824d1f5c9603
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 16 18:15:59 2015 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Jan 16 18:15:59 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/netifrc.git;a=commit;h=8ac4bdbd
Speed up testing for e* commands.
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
---
sh/functions.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sh/functions.sh b/sh/functions.sh
index e209701..d907585 100644
--- a/sh/functions.sh
+++ b/sh/functions.sh
@@ -2,8 +2,7 @@
# systems.
# First check whether e* commands are present in the environment
-# XXX [[-n RC_GOT_FUNCTIONS]] ??
-if [ -n "$(command -v ebegin >/dev/null 2>&1)" ]; then
+if [ x$RC_GOT_FUNCTIONS = xyes -o -n "$(command -v ebegin 2>/dev/null)" ]; then
:
# Then check for the presence of functions.sh
@@ -16,6 +15,8 @@ else
fi
# runscript functions
+# TODO: if another non-openrc system provides these in future, we have to
+# change this structure.
if [ "$INIT" != "openrc" ]; then
# OpenRC functions used in depend
next reply other threads:[~2015-01-16 18:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-16 18:16 Robin H. Johnson [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-03-25 0:45 [gentoo-commits] proj/netifrc:master commit in: sh/ Patrick McLean
2019-04-21 5:34 Robin H. Johnson
2019-04-21 4:17 Robin H. Johnson
2016-10-24 22:26 Robin H. Johnson
2016-07-19 19:59 Robin H. Johnson
2015-01-22 23:01 Robin H. Johnson
2015-01-16 18:16 Robin H. Johnson
2015-01-09 17:17 Robin H. Johnson
2015-01-09 17:17 Robin H. Johnson
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=1421432159.8ac4bdbd7b752c6a0805559d4644824d1f5c9603.robbat2@OpenRC \
--to=robbat2@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