From 247847f5d4702b181171c3e057a0ccaf48200bab Mon Sep 17 00:00:00 2001
From: Alejandro Mery <amery@geeks.cl>
Date: Thu, 2 Jun 2011 12:47:19 +0200
Subject: [PATCH] sde-build: show broken links messages as errors

---
 lib/functions.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/functions.in b/lib/functions.in
index a63d3b2..55a2880 100644
--- a/lib/functions.in
+++ b/lib/functions.in
@@ -411,16 +411,16 @@ postflist_dirty_symlinks() {
 
 				dfn2=$(relative_path "$dfn" "/$fn")
 				if [ -z "$dfn2" ]; then
-					echo_warning "invalid symlink: $fn (can't fix)"
+					echo_error "invalid symlink: $fn (can't fix)"
 					continue
 				fi
 				ln -snf "$dfn2" "$ffn"
 
 				if [ ! -e "$ffn" ]; then
-					echo_warning "broken absolute symlink: $fn"
+					echo_error "broken absolute symlink: $fn"
 				fi
 			elif [ ! -e "$ffn" ]; then
-				echo_warning "broken symlink: $fn"
+				echo_error "broken symlink: $fn"
 			fi
 		fi
 	done < "$builddir/flist.txt"
@@ -454,7 +454,7 @@ postflist_static_lib() {
 		esac
 		add_flist "$ffn2"
 		if [ -L "$ffn2" -a ! -e "$ffn2" ]; then
-			echo_warning "broken symlink: usr/$fn (after static lib correction)"
+			echo_error "broken symlink: usr/$fn (after static lib correction)"
 		fi
 	done