From 0a3724b6fdb6fcd82a55245ea4f945d77ee7c5f2 Mon Sep 17 00:00:00 2001
From: Alejandro Mery <amery@opensde.org>
Date: Wed, 3 Sep 2008 15:58:44 -0400
Subject: [PATCH] Fixed lib/functions.in's abort() to work when ECHO_E is
 undefined

---
 lib/functions.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/functions.in b/lib/functions.in
index 8ea3ef9..92f02aa 100644
--- a/lib/functions.in
+++ b/lib/functions.in
@@ -463,7 +463,7 @@ create_config_cache() {
 # (is overwritten in Build-Pkg)
 #
 abort() {
-	$ECHO_E "The package build aborted with the following config" \
+	${ECHO_E:-echo -e} "The package build aborted with the following config" \
 	     "error:\n$*" > $root/var/adm/logs/$stagelevel-$xpkg.err
 	echo_errorquote "`cat $root/var/adm/logs/$stagelevel-$xpkg.err`"
 	echo_pkg_abort $stagelevel $repository $xpkg