From 3d1da4511ab62173d457b78a243fdc001b648911 Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Mon, 16 Nov 2009 13:53:12 +0100 Subject: copy_exec: Check if ldd is around got report of a box with missing ldd. as the errors get seded away the user is left with no idea of the failure. Signed-off-by: maximilian attems --- hook-functions | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hook-functions') diff --git a/hook-functions b/hook-functions index bd9e06a..9d59dc1 100644 --- a/hook-functions +++ b/hook-functions @@ -147,6 +147,10 @@ copy_exec() { fi # Copy the dependant libraries + if ! command -v ldd >/dev/null 2>&1 ; then + echo "WARNING: no ldd around - install libc-bin" + exit 1 + fi for x in $(ldd ${source} 2>/dev/null | sed -e ' /\//!d; /linux-gate/d; -- cgit v1.2.3