fix empty package file name

This commit is contained in:
dmacias72 2017-06-17 04:35:01 -06:00
parent fe57d1586f
commit 0498c492e5

View File

@ -137,6 +137,7 @@ foreach ($pkg_cfg as $pkg_name => $pkg_pref) { // get preferences for each packa
if (file_check_sha1($pkg_file, $pkg_sha1)){
$pkg_msg = 'package up to date, checksum ok.';
}else{
if(!is_dir($pkg_file))
unlink($pkg_file);
$pkg_msg = 'checksum failed! package deleted.';
}