projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8a5e7f
)
Prevent extra newlines in elog for einfo invocations. See bug #136208. This patch...
author
Zac Medico
<zmedico@gentoo.org>
Wed, 21 Jun 2006 01:57:37 +0000
(
01:57
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 21 Jun 2006 01:57:37 +0000
(
01:57
-0000)
svn path=/main/branches/2.1/; revision=3557
bin/isolated-functions.sh
patch
|
blob
|
history
diff --git
a/bin/isolated-functions.sh
b/bin/isolated-functions.sh
index be054d4eee118f948c59b5ac75a525c15b6e8edf..0bb4fa6d52a588f4088ef6935a96ab46ca84dd3a 100644
(file)
--- a/
bin/isolated-functions.sh
+++ b/
bin/isolated-functions.sh
@@
-49,7
+49,7
@@
esyslog() {
}
einfo() {
- einfon "$*
\n
"
+ einfon "$*"
LAST_E_CMD="einfo"
return 0
}
@@
-57,7
+57,11
@@
einfo() {
einfon() {
elog_base INFO "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo -ne " ${GOOD}*${NORMAL} $*"
+ if [ "${FUNCNAME[1]}" == "einfo" ]; then
+ echo -e " ${GOOD}*${NORMAL} $*"
+ else
+ echo -ne " ${GOOD}*${NORMAL} $*"
+ fi
LAST_E_CMD="einfon"
return 0
}