fix: honest installer success #46
Reference in New Issue
Block a user
Delete Branch "fix/honest-install-success"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Honest installer success
The package
postflightshowed the "License Key Required" / next-steps message even when a bundled child extension failed to sub-install. Joomla's package installer only logs a failed child sub-install, so the postflight still runs and falsely reports success.Change
missingChildExtensions($adapter)verifier that reads$adapter->getParent()->getManifest(), iterates<file>entries, derives the#__extensionselement (plugins strip a leadingplg_<group>_), and confirms each declared child landed (plugins also matchfolder = group).postflight, if any child is missing, enqueue an htmlspecialchars-escaped ERROR listing the missing extensions andreturnbefore the license / next-steps path.[], so a transient glitch never fakes a failure.Mirrors MokoSuiteHQ PR #72 and MokoSuiteClient PR #300 (package with
plg_<group>_prefix-strip).php -lpasses.https://claude.ai/code/session_01B9aZHSWbiiZykJD88pYx8R