Make CliInstaller control the processing logic of the error
authorRazeSoldier <razesoldier@outlook.com>
Sat, 27 Jul 2019 15:38:54 +0000 (23:38 +0800)
committerRazeSoldier <razesoldier@outlook.com>
Mon, 29 Jul 2019 12:18:08 +0000 (20:18 +0800)
commitb873e9294b87ee256df581e2cc9e83ef814871c0
treefbe132ff13122b76530360362052c0c36d4e5f59
parent3622787eba642211c41bd758fa9a03118f22262f
Make CliInstaller control the processing logic of the error

Previously, if there was an error during CLI installation,
CliInstaller::showStatusMessage() exited the script directly. The exit
timing of the script should be given to the caller, not the callee.
So, I coding:
[1] Remove `exit()` from CliInstaller::showStatusMessage()
[2] Make the callee to return Status, the caller determine how to handle these Status
[3] Strictly check the key database type instead of just outputting message

Bug: T46511
Change-Id: I72ffd33fe5c592b9ea78f37bae5a9c081295c624
autoload.php
includes/installer/CliInstaller.php
includes/installer/InstallException.php [new file with mode: 0644]
includes/installer/Installer.php
maintenance/install.php