Add support for Cumulative Updates

This commit is contained in:
mkuba50
2017-10-16 18:03:26 +02:00
parent 2f2e532dae
commit d1df967ded
4 changed files with 43 additions and 16 deletions

View File

@ -144,15 +144,19 @@ function uupFetchUpd($arch = 'amd64', $ring = 'WIF', $flight = 'Active', $build
ksort($shaArray);
$temp = array(
'title' => $updateTitle,
'ring' => $ring,
'flight' => $flight,
'arch' => $arch,
'build' => $foundBuild,
'checkBuild' => $build,
'files' => $shaArray,
);
$temp = array();
$temp['title'] = $updateTitle;
$temp['ring'] = $ring;
$temp['flight'] = $flight;
$temp['arch'] = $arch;
$temp['build'] = $foundBuild;
$temp['checkBuild'] = $build;
if(preg_match('/Cumulative Update/', $updateTitle)) {
$temp['containsCU'] = 1;
}
$temp['files'] = $shaArray;
consoleLogger('Successfully parsed the information.');
consoleLogger('Writing new build information to the disk...');