Process upgraed no delete file.

- No delete file "updating" when there a error.
- was add validation.
This commit is contained in:
Marco Antonio Nina
2013-01-18 16:10:12 -04:00
parent 5af4aad1f7
commit 57faa048f7

View File

@@ -72,6 +72,7 @@ function run_upgrade($command, $args)
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?")) {
CLI::logging("Upgrade failed\n");
$flag = G::isPMUnderUpdating(0);
die();
}
} else {
@@ -90,6 +91,7 @@ function run_upgrade($command, $args)
if (!(empty($checksum['missing']) || empty($checksum['diff']))) {
if (!CLI::question("Integrity check failed, do you want to continue the upgrade?")) {
CLI::logging("Upgrade failed\n");
$flag = G::isPMUnderUpdating(0);
die();
}
}