mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Split lib/general.sh
This commit is contained in:
16
lib/functions/rootfs/create-cache.sh
Normal file
16
lib/functions/rootfs/create-cache.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
# get_package_list_hash
|
||||
#
|
||||
# returns md5 hash for current package list and rootfs cache version
|
||||
|
||||
get_package_list_hash()
|
||||
{
|
||||
local package_arr exclude_arr
|
||||
local list_content
|
||||
read -ra package_arr <<< "${DEBOOTSTRAP_LIST} ${PACKAGE_LIST}"
|
||||
read -ra exclude_arr <<< "${PACKAGE_LIST_EXCLUDE}"
|
||||
(
|
||||
printf "%s\n" "${package_arr[@]}"
|
||||
printf -- "-%s\n" "${exclude_arr[@]}"
|
||||
) | sort -u | md5sum | cut -d' ' -f 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user