consolidate code
This commit is contained in:
parent
cfb8b93b43
commit
275d62c468
|
@ -139,15 +139,15 @@ foreach ($pkg_cfg as $pkg_name => $pkg_pref) { // get preferences for each packa
|
|||
}else{
|
||||
if ($pkg_pref == 'yes'){
|
||||
if (file_exists($pkg_file)){
|
||||
if (file_check_sha1($pkg_file, $pkg_sha1))
|
||||
if (file_check_sha1($pkg_file, $pkg_sha1)){
|
||||
$pkg_msg = 'package up to date, checksum ok.';
|
||||
else{
|
||||
if (file_exists($pkg_file))
|
||||
}else{
|
||||
unlink($pkg_file);
|
||||
$pkg_msg = 'checksum failed! package deleted.';
|
||||
}
|
||||
}else
|
||||
}else{
|
||||
$pkg_msg = ' package missing!';
|
||||
}
|
||||
|
||||
logger($pkg_name." $pkg_msg", $argq);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user