From bd3d853c5c3c0723efcf4af3baecc091b385e8b8 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Thu, 15 Dec 2011 05:54:14 -0500 Subject: functions: don't fail on add_binary adding a non-binary The function did its job, it just isn't going to add any deps. This makes add_binary effectively a slightly more costly version of add_file. Signed-off-by: Dave Reisner --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index 7af23c1..0af586d 100644 --- a/functions +++ b/functions @@ -309,7 +309,7 @@ add_binary() { # always add the binary itself _add_file "${dest#$BASEDIR}" "$binary" "$mode" - lddout=$(ldd "$binary" 2>/dev/null) || return 1 # not a binary! + lddout=$(ldd "$binary" 2>/dev/null) || return 0 # not a binary! # resolve sodeps regex='(/.+) \(0x[a-fA-F0-9]+\)' -- cgit v1.2.3-24-g4f1b