fix: honest installer success message #121
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 (mirrors MokoSuiteHQ PR #72 / MokoSuiteClient PR #300). This repo ships two manifests with
<scriptfile>, so both are gated:1. Package —
pkg_mokoog.xml/source/script.phppostflight()now calls a new privatemissingChildExtensions()verifier that reads$parent->getParent()->getManifest(), iterates$manifest->files->file, and confirms each declared extension registered in#__extensions(element =id, minus a leadingplg_<group>_for plugins; plugins also matchfolder = group). Missing →error(htmlspecialchars'd) + return before the license message. Download-key restore and plugin enable were reordered to run unconditionally before the gate.2. Component —
com_mokoog/mokoog.xml/com_mokoog/script.phpThe
install()/update()methods echoed "installed successfully" unconditionally. They now call a new privatemissingTables()verifier that readsJPATH_ADMINISTRATOR/components/com_mokoog/sql/install.mysql.sql, extracts everyCREATE TABLE #__name, resolves the live prefix, and checks each againstgetTableList()(case-insensitive). Missing → error echo + return before the success message.Both verifiers use the container DB accessor (matching this repo's J7 forward-compat removal of
Factory::getDbo) and fail open (try/catch →[]).php -lpasses on both files.https://claude.ai/code/session_01B9aZHSWbiiZykJD88pYx8R
Closing as redundant. PR #120 ("fix(installer): gate install-success on real verification") was merged into
dev(commitfe38a42) after this branch was cut and already implements the identical honest-install pattern for both the package script (missingChildExtensions()) and thecom_mokoogcomponent script (missingTables()). This PR now conflicts with that work and adds nothing beyond it. No action needed on OpenGraph.Pull request closed