fix: honest installer success for MokoSuiteCross package #257
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?
Summary
Applies the "honest installer success" pattern to the MokoSuiteCross package installer so it stops showing the license / next-steps message when the install actually failed or only partially completed.
Package installer (
source/script.php)missingChildExtensions()that reads the package manifest via$parent->getParent()->getManifest()and verifies every declared<file>(component/module/plugin) actually landed in#__extensions.element+type; for plugins also matchesfolder = groupand strips a leadingplg_<group>_from the id when present.<file>text minus a trailing.zip), HTML-escaped withhtmlspecialchars.postflight, before the license / next-steps warning, calls the check; if anything is missing it enqueues anerrorlisting them and returns early.[], so a transient query/IO glitch never turns a good install into a false failure.Component installer (
source/packages/com_mokosuitecross/script.php)postflightis empty (no success/license/next-steps message to gate). Atomic install.Mirrors MokoSuiteHQ PR #72 and MokoSuiteClient PR #300.
php -lpasses on the changed script.https://claude.ai/code/session_01B9aZHSWbiiZykJD88pYx8R
Closing as redundant —
devalready implements the "honest installer success" pattern (missingChildExtensions()+ a gated success/license path insource/script.php). This PR was branched before that landed and now conflicts with the equivalent code ondev, so there's nothing to add.Pull request closed