fix empty package file name
This commit is contained in:
parent
fe57d1586f
commit
0498c492e5
|
@ -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.';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user