fix empty package file name
This commit is contained in:
parent
fe57d1586f
commit
0498c492e5
|
@ -137,7 +137,8 @@ foreach ($pkg_cfg as $pkg_name => $pkg_pref) { // get preferences for each packa
|
||||||
if (file_check_sha1($pkg_file, $pkg_sha1)){
|
if (file_check_sha1($pkg_file, $pkg_sha1)){
|
||||||
$pkg_msg = 'package up to date, checksum ok.';
|
$pkg_msg = 'package up to date, checksum ok.';
|
||||||
}else{
|
}else{
|
||||||
unlink($pkg_file);
|
if(!is_dir($pkg_file))
|
||||||
|
unlink($pkg_file);
|
||||||
$pkg_msg = 'checksum failed! package deleted.';
|
$pkg_msg = 'checksum failed! package deleted.';
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user