Process upgraed no delete file.
- No delete file "updating" when there a error. - was add validation.
This commit is contained in:
@@ -72,6 +72,7 @@ function run_upgrade($command, $args)
|
|||||||
CLI::logging(CLI::error("checksum.txt not found, integrity check is not possible") . "\n");
|
CLI::logging(CLI::error("checksum.txt not found, integrity check is not possible") . "\n");
|
||||||
if (!CLI::question("Integrity check failed, do you want to continue the upgrade?")) {
|
if (!CLI::question("Integrity check failed, do you want to continue the upgrade?")) {
|
||||||
CLI::logging("Upgrade failed\n");
|
CLI::logging("Upgrade failed\n");
|
||||||
|
$flag = G::isPMUnderUpdating(0);
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -90,6 +91,7 @@ function run_upgrade($command, $args)
|
|||||||
if (!(empty($checksum['missing']) || empty($checksum['diff']))) {
|
if (!(empty($checksum['missing']) || empty($checksum['diff']))) {
|
||||||
if (!CLI::question("Integrity check failed, do you want to continue the upgrade?")) {
|
if (!CLI::question("Integrity check failed, do you want to continue the upgrade?")) {
|
||||||
CLI::logging("Upgrade failed\n");
|
CLI::logging("Upgrade failed\n");
|
||||||
|
$flag = G::isPMUnderUpdating(0);
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user