build-package.sh: always create directories, if necessary
This commit is contained in:
parent
1f170db0ee
commit
38cd9fc184
@ -462,11 +462,6 @@ termux_download_deb() {
|
|||||||
|
|
||||||
# Script to download InRelease, verify it's signature and then download Packages.xz by hash
|
# Script to download InRelease, verify it's signature and then download Packages.xz by hash
|
||||||
termux_step_get_repo_files() {
|
termux_step_get_repo_files() {
|
||||||
if [ "$TERMUX_INSTALL_DEPS" = true ]; then
|
|
||||||
if [ "$TERMUX_NO_CLEAN" = false ]; then
|
|
||||||
# Remove all previously extracted/built files from $TERMUX_PREFIX:
|
|
||||||
rm -rf $TERMUX_PREFIX
|
|
||||||
rm -f /data/data/.built-packages/*
|
|
||||||
# Ensure folders present (but not $TERMUX_PKG_SRCDIR, it will be created in build)
|
# Ensure folders present (but not $TERMUX_PKG_SRCDIR, it will be created in build)
|
||||||
mkdir -p "$TERMUX_COMMON_CACHEDIR" \
|
mkdir -p "$TERMUX_COMMON_CACHEDIR" \
|
||||||
"$TERMUX_COMMON_CACHEDIR-$TERMUX_ARCH" \
|
"$TERMUX_COMMON_CACHEDIR-$TERMUX_ARCH" \
|
||||||
@ -478,6 +473,11 @@ termux_step_get_repo_files() {
|
|||||||
"$TERMUX_PKG_CACHEDIR" \
|
"$TERMUX_PKG_CACHEDIR" \
|
||||||
"$TERMUX_PKG_MASSAGEDIR" \
|
"$TERMUX_PKG_MASSAGEDIR" \
|
||||||
$TERMUX_PREFIX/{bin,etc,lib,libexec,share,tmp,include}
|
$TERMUX_PREFIX/{bin,etc,lib,libexec,share,tmp,include}
|
||||||
|
if [ "$TERMUX_INSTALL_DEPS" = true ]; then
|
||||||
|
if [ "$TERMUX_NO_CLEAN" = false ]; then
|
||||||
|
# Remove all previously extracted/built files from $TERMUX_PREFIX:
|
||||||
|
rm -rf $TERMUX_PREFIX
|
||||||
|
rm -f /data/data/.built-packages/*
|
||||||
# Setup bootstrap
|
# Setup bootstrap
|
||||||
if [ $TERMUX_ARCH == aarch64 ]; then
|
if [ $TERMUX_ARCH == aarch64 ]; then
|
||||||
local bootstrap_sha256=2944ad699814329007d1f9c056e7c8323243c8b4a257cbd05904216f89fc3746
|
local bootstrap_sha256=2944ad699814329007d1f9c056e7c8323243c8b4a257cbd05904216f89fc3746
|
||||||
|
Loading…
Reference in New Issue
Block a user