VM Manager: clean up virtio-iso download progress

This commit is contained in:
Eric Schultz
2016-04-12 16:36:32 -05:00
parent 7676449b50
commit 86407a237a

View File

@@ -543,17 +543,15 @@ switch ($action) {
// Status = running extract
$arrResponse['status'] = 'Cleanup ... ';
if (!pgrep($strExtractPgrep)) {
// Examine md5 status
$strMD5StatusContents = file_get_contents($strMD5StatusFile);
// Examine md5 status
$strMD5StatusContents = file_get_contents($strMD5StatusFile);
if (strpos($strMD5StatusContents, ': FAILED') !== false) {
if (strpos($strMD5StatusContents, ': FAILED') !== false) {
// ERROR: MD5 check failed
unset($arrResponse['status']);
$arrResponse['error'] = 'MD5 verification failed, your download is incomplete or corrupted.';
// ERROR: MD5 check failed
unset($arrResponse['status']);
$arrResponse['error'] = 'MD5 verification failed, your download is incomplete or corrupted.';
}
}
} else if (!file_exists($strMD5File)) {