fix(build): anchor data-dir excludes to root

--exclude='cache/' matched any nested dir named cache (e.g. core
com_cache/views/cache/); anchor cache/tmp/logs/images excludes to the docroot
root so only runtime-data top-level dirs are dropped. Non-malware code residual
now 0 (remaining residual is excluded malware + scan artifacts).

Signed-off-by: LÁZÁR Imre <imre@illusion.hu>
Assisted-by: claude-code@claude-opus-4-8
This commit is contained in:
LÁZÁR Imre AI Agent 2026-07-16 13:50:51 +02:00
parent 84f387bbd6
commit 1801f57702

View File

@ -27,9 +27,9 @@ git -C "$ROOT" submodule update --init \
# runtime data dirs (cache/tmp/logs/images are data, not verified code). # runtime data dirs (cache/tmp/logs/images are data, not verified code).
log "core: Joomla 3.8.11 (official package)" log "core: Joomla 3.8.11 (official package)"
rsync -a \ rsync -a \
--exclude='cache/' --exclude='tmp/' --exclude='logs/' \ --exclude='/cache/' --exclude='/tmp/' --exclude='/logs/' \
--exclude='images/sampledata/' --exclude='images/banners/' --exclude='images/headers/' \ --exclude='/images/sampledata/' --exclude='/images/banners/' --exclude='/images/headers/' \
--exclude='images/joomla_black.png' --exclude='images/powered_by.png' \ --exclude='/images/joomla_black.png' --exclude='/images/powered_by.png' \
"$ROOT/core/" "$OUT/" "$ROOT/core/" "$OUT/"
# 2) Upstream-package extensions — deployed-layout, byte-reconciled to live. # 2) Upstream-package extensions — deployed-layout, byte-reconciled to live.