remove bad downloads
This commit is contained in:
parent
8969459ae1
commit
4c90d054a1
@ -91,8 +91,11 @@ foreach ($pkg_cfg as $pkg_name => $pkg_pref) { // get preferences for each packa
|
||||
|
||||
if (file_check_sha1($pkg_file, $pkg_sha1))
|
||||
logger($pkg_gitname.' package downloaded sucessfully!', $argq);
|
||||
else
|
||||
else{
|
||||
if(is_file($pkg_file))
|
||||
unlink($pkg_file);
|
||||
logger($pkg_gitname.' package download failed!', $argq);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!$pkg_install_status) {
|
||||
|
Loading…
Reference in New Issue
Block a user