Fix list of files for build 17025
This commit is contained in:
parent
f9997dee4b
commit
29b9672b9b
27
get.php
27
get.php
@ -84,6 +84,17 @@ function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePac
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($info['build'])) {
|
||||
$build = $info['build'];
|
||||
|
||||
if($build == 'UNKNOWN') {
|
||||
$buildNumber = 9841;
|
||||
} else {
|
||||
$buildNumber = explode('.', $build);
|
||||
$buildNumber = $buildNumber[0];
|
||||
}
|
||||
}
|
||||
|
||||
$uupFix = 0;
|
||||
if(isset($info['needsFix'])) {
|
||||
if($info['needsFix'] == true) $uupFix = 1;
|
||||
@ -142,7 +153,7 @@ function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePac
|
||||
$size = $info[$sha1]['size'];
|
||||
}
|
||||
|
||||
if($uupFix && !isset($fileSizes[$name])) $fileSizes[$name] = 0;
|
||||
if(!isset($fileSizes[$name])) $fileSizes[$name] = 0;
|
||||
|
||||
$temp = array(
|
||||
'sha1' => $sha1,
|
||||
@ -153,14 +164,10 @@ function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePac
|
||||
);
|
||||
|
||||
if(!preg_match('/\.psf$/', $name)) {
|
||||
if($uupFix) {
|
||||
if($size > $fileSizes[$name]) {
|
||||
$fileSizes[$name] = $size;
|
||||
$files = array_merge($files, array($name => $temp));
|
||||
}
|
||||
} else {
|
||||
$files = array_merge($files, array($name => $temp));
|
||||
}
|
||||
} else {
|
||||
if(!preg_match('/^Windows10\.0-KB/', $name)) {
|
||||
$name = preg_replace('/\.psf$/', '', $name);
|
||||
@ -171,8 +178,18 @@ function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePac
|
||||
|
||||
if(!$uupFix) {
|
||||
foreach($removeFiles as $val) {
|
||||
if(preg_match('/'.$updateArch.'_.*/i', $val)) {
|
||||
if(isset($files[$val.'.cab'])) unset($files[$val.'.cab']);
|
||||
}
|
||||
|
||||
if(isset($files[$val.'.esd'])) {
|
||||
if(isset($files[$val.'.cab'])) unset($files[$val.'.cab']);
|
||||
}
|
||||
|
||||
if(isset($files[$val.'.ESD'])) {
|
||||
if(isset($files[$val.'.cab'])) unset($files[$val.'.cab']);
|
||||
}
|
||||
}
|
||||
unset($removeFiles);
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
function uupApiVersion() {
|
||||
return '1.4.0';
|
||||
return '1.4.1';
|
||||
}
|
||||
|
||||
function uupApiPrintBrand() {
|
||||
|
Loading…
Reference in New Issue
Block a user