Skip to content

Commit

Permalink
feat: use custom folder for functions and debootstrap scripts to cont…
Browse files Browse the repository at this point in the history
…rol distros sybolic links
  • Loading branch information
SaicharanKandukuri committed Apr 4, 2024
1 parent 0647dfa commit 7bdd196
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/envsetup
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,12 @@ do_build() {
export chroot_dir
chroot_dir=$target_dir

if [[ ! $DEBOOTSTRAP_DIR ]]; then
export DEBOOTSTRAP_DIR="$ROOT_DIR/core/debootstrap-scripts"
fi

if [ -n "$SUITE" ]; then
supported_suites="$(ls "${ROOT_DIR}"/core/debootstrap/scripts)"
supported_suites="$(ls $DEBOOTSTRAP_DIR/scripts)"
suite_found=false
for sts in $supported_suites; do
if [ "$sts" == "$SUITE" ]; then
Expand Down Expand Up @@ -322,10 +326,6 @@ do_build() {
_debootstrap=$(which debootstrap)
fi

if ! $DEBOOTSTRAP_DIR; then
DEBOOTSTRAP_DIR="$ROOT_DIR/core/debootstrap"
fi

if [ "$BUILD_PLATFORM" == "termux" ]; then
dpkg_depends_on debootstrap
_debootstrap="$(which debootstrap)"
Expand Down

0 comments on commit 7bdd196

Please sign in to comment.