Permalink
Browse files

dont add deps for a binary if it cant be successfully added to the image

  • Loading branch information...
falconindy committed May 1, 2011
1 parent 6f6f62b commit a04ee4e844c8cf50a2c7f94f1245d82e9dc952af
Showing with 3 additions and 2 deletions.
  1. +3 −2 geninit.api
View
@@ -139,6 +139,9 @@ add_binary() { # {{{
return $? # return with add_file's return val
fi
+ # the binary itself
+ __add_file "${dest#$basedir}" "${binary#$basedir}" 755 || return 1
+
IFS=$'\n' read -rd '' -a sodeps < <(ldd "$binary" |\
sed -n '2,$s#.\+=>[[:blank:]]\+\([^ ]\+\) (.\+#\1#p')
@@ -159,8 +162,6 @@ add_binary() { # {{{
fi
done
- # the binary itself
- __add_file "${dest#$basedir}" "${binary#$basedir}" 755
} # }}}
add_pipe() { # {{{

0 comments on commit a04ee4e

Please sign in to comment.