summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-12-15 11:54:14 +0100
committerDave Reisner <dreisner@archlinux.org>2011-12-15 11:54:14 +0100
commitbd3d853c5c3c0723efcf4af3baecc091b385e8b8 (patch)
tree7e963d1625813c4d7c6d9ae72591a9d1dfa75967 /functions
parent4682aa0207c9e9a0892aa579d2fab53a9637acdc (diff)
downloadmkinitcpio-bd3d853c5c3c0723efcf4af3baecc091b385e8b8.tar.gz
mkinitcpio-bd3d853c5c3c0723efcf4af3baecc091b385e8b8.tar.xz
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 <dreisner@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
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]+\)'