mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
config/functions: rebuild package when PKG_STAMP has changed
This commit is contained in:
parent
47af2b4d51
commit
ddb55a932a
@ -752,11 +752,16 @@ get_pkg_directory() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
calculate_stamp() {
|
calculate_stamp() {
|
||||||
local stamp
|
local stamp data
|
||||||
|
|
||||||
stamp="$PKG_DIR $PROJECT_DIR/$PROJECT/patches/$PKG_NAME"
|
stamp="$PKG_DIR $PROJECT_DIR/$PROJECT/patches/$PKG_NAME"
|
||||||
[ -n "$DEVICE" ] && stamp+=" $PROJECT_DIR/$PROJECT/devices/$DEVICE/patches/$PKG_NAME"
|
[ -n "$DEVICE" ] && stamp+=" $PROJECT_DIR/$PROJECT/devices/$DEVICE/patches/$PKG_NAME"
|
||||||
[ -n "$PKG_NEED_UNPACK" ] && stamp+=" $PKG_NEED_UNPACK"
|
[ -n "$PKG_NEED_UNPACK" ] && stamp+=" $PKG_NEED_UNPACK"
|
||||||
find ${stamp} -exec sha256sum {} \; 2>/dev/null | sed "s/ ${ROOT//\//\\/}\// /" | sort | sha256sum | cut -d" " -f1
|
|
||||||
|
data="$(find ${stamp} -exec sha256sum {} \; 2>/dev/null | sed "s/ ${ROOT//\//\\/}\// /")"
|
||||||
|
[ -n "${PKG_STAMP}" ] && data+=$'\n'"$(echo "${PKG_STAMP}" | sha256sum)"
|
||||||
|
|
||||||
|
echo "${data}" | sort | sha256sum | cut -d" " -f1
|
||||||
}
|
}
|
||||||
|
|
||||||
target_has_feature() {
|
target_has_feature() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user