aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdabuild.in10
1 files changed, 2 insertions, 8 deletions
diff --git a/dabuild.in b/dabuild.in
index 6839e8d..78ec170 100755
--- a/dabuild.in
+++ b/dabuild.in
@@ -67,16 +67,10 @@ else
esac
fi
-## check $DABUILD_PACKAGES is a writable directory
+## set packages directory based on aports location if not set
+## FIXME this will not append release dir if set manually
ABUILD_PACKAGES=${DABUILD_PACKAGES:-${PWD%/aports/*}/packages/${ALPINE_RELEASE}}
-mkdir -p $ABUILD_PACKAGES
-if [ ! \( -d "$ABUILD_PACKAGES" -a -w "$ABUILD_PACKAGES" \) ]; then
- die "Error: invalid or unwritable packages directory specified!" \
- "ABUILD_PACKAGES = '$ABUILD_PACKAGES'" \
- "DABUILD_PACKAGES = '$DABUILD_PACKAGES'"
-fi
-
## setup volumes; use named volumes as cache if desired
ABUILD_VOLUMES="-v ${PWD%/aports/*}/aports:/home/builder/aports \
-v ${ABUILD_PACKAGES}:/home/builder/packages"