diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-12-15 11:54:14 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-12-15 11:54:14 +0100 |
commit | bd3d853c5c3c0723efcf4af3baecc091b385e8b8 (patch) | |
tree | 7e963d1625813c4d7c6d9ae72591a9d1dfa75967 | |
parent | 4682aa0207c9e9a0892aa579d2fab53a9637acdc (diff) | |
download | mkinitcpio-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>
-rw-r--r-- | functions | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]+\)' |