mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Bump with roofs cache and small cache recreation optimisation
This commit is contained in:
@@ -28,7 +28,7 @@ HOSTRELEASE=$(cat /etc/os-release | grep VERSION_CODENAME | cut -d"=" -f2)
|
||||
[[ -z $EXIT_PATCHING_ERROR ]] && EXIT_PATCHING_ERROR="" # exit patching if failed
|
||||
[[ -z $HOST ]] && HOST="$BOARD" # set hostname to the board
|
||||
cd "${SRC}" || exit
|
||||
ROOTFSCACHE_VERSION=5
|
||||
ROOTFSCACHE_VERSION=6
|
||||
CHROOT_CACHE_VERSION=7
|
||||
BUILD_REPOSITORY_URL=$(improved_git remote get-url $(improved_git remote 2>/dev/null | grep origin) 2>/dev/null)
|
||||
BUILD_REPOSITORY_COMMIT=$(improved_git describe --match=d_e_a_d_b_e_e_f --always --dirty 2>/dev/null)
|
||||
|
||||
@@ -118,6 +118,8 @@ create_rootfs_cache()
|
||||
local cache_fname=${SRC}/cache/rootfs/${cache_name}
|
||||
local display_name=${RELEASE}-${cache_type}-${ARCH}.${packages_hash:0:3}...${packages_hash:29}.tar.lz4
|
||||
|
||||
[[ "$ROOT_FS_CREATE_ONLY" == force ]] && break
|
||||
|
||||
if [[ -f ${cache_fname} && -f ${cache_fname}.aria2 ]]; then
|
||||
rm ${cache_fname}*
|
||||
display_alert "Partially downloaded file. Re-start."
|
||||
|
||||
Reference in New Issue
Block a user