From fcfb47796667d350e53d94441b5a1cfee36ad36d Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Wed, 16 Apr 2014 16:05:41 -0500 Subject: Silence error when sysroot does not exist --- libexec/build-make | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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%%/*}" -- cgit v1.2.3-18-g5258