aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlibexec/build-make3
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%%/*}"