forked from uup-dump/api
Fix names of some updates
This commit is contained in:
parent
e2ea2e5fee
commit
e32d7446ca
@ -60,7 +60,7 @@ function uupFetchUpd(
|
|||||||
$build = intval($build[0]);
|
$build = intval($build[0]);
|
||||||
$sku = intval($sku);
|
$sku = intval($sku);
|
||||||
|
|
||||||
if(!($arch == 'amd64' || $arch == 'x86' || $arch == 'arm64')) {
|
if(!($arch == 'amd64' || $arch == 'x86' || $arch == 'arm64' || $arch == 'arm')) {
|
||||||
return array('error' => 'UNKNOWN_ARCH');
|
return array('error' => 'UNKNOWN_ARCH');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -204,9 +204,9 @@ function parseFetchUpdate($updateInfo, $out, $arch, $ring, $flight, $build, $sku
|
|||||||
}
|
}
|
||||||
|
|
||||||
$isCumulativeUpdate = 0;
|
$isCumulativeUpdate = 0;
|
||||||
if(preg_match('/Cumulative Update/', $updateTitle)) {
|
if(preg_match('/\d{4}-\d{2}.+Update/', $updateTitle)) {
|
||||||
$isCumulativeUpdate = 1;
|
$isCumulativeUpdate = 1;
|
||||||
$updateTitle = preg_replace('/.*Cumulative Update/i', 'Cumulative Update', $updateTitle);
|
$updateTitle = preg_replace('/\d{4}-\d{2} /i', '', $updateTitle);
|
||||||
$updateTitle = preg_replace('/ for .{3,5}-based systems| \(KB.*?\)/i', '', $updateTitle);
|
$updateTitle = preg_replace('/ for .{3,5}-based systems| \(KB.*?\)/i', '', $updateTitle);
|
||||||
|
|
||||||
if(!preg_match("/$foundBuild/", $updateTitle)) {
|
if(!preg_match("/$foundBuild/", $updateTitle)) {
|
||||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function uupApiVersion() {
|
function uupApiVersion() {
|
||||||
return '1.19.2';
|
return '1.19.3';
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once dirname(__FILE__).'/auths.php';
|
require_once dirname(__FILE__).'/auths.php';
|
||||||
|
Loading…
Reference in New Issue
Block a user