diff options
author | David Barksdale <amatus@amatus.name> | 2014-04-16 16:05:41 -0500 |
---|---|---|
committer | David Barksdale <amatus@amatus.name> | 2014-04-16 16:05:41 -0500 |
commit | fcfb47796667d350e53d94441b5a1cfee36ad36d (patch) | |
tree | 67d357b4e6e8a75f01f063fea196d8c3a7bb7835 | |
parent | 4dee204d360ae21688ded1c3615ea59ab5a84a48 (diff) |
Silence error when sysroot does not exist
-rwxr-xr-x | libexec/build-make | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/build-make b/libexec/build-make index aa3f419..8da60c9 100755 --- a/libexec/build-make +++ b/libexec/build-make @@ -91,7 +91,8 @@ build_make() export BUILDER_MAKEFILE "${BUILDER_LIBDIR}/build-makedeps" || die "failed generate build dependencies" - for package in $(cd "${SYSROOT}/var/db/binpkgs" && echo */*); do + for package in $(cd "${SYSROOT}/var/db/binpkgs" 2> /dev/null && + echo */*); do test -e "${SYSROOT}/var/db/binpkgs/${package}" || continue name="${package##*/}" category="${package%%/*}" |