From 140613f657e6309b1c52787b3cad7b904b3b1143 Mon Sep 17 00:00:00 2001 From: orin Date: Thu, 9 Nov 2023 20:36:28 +0100 Subject: [PATCH] Minor flags fixes --- fetchupd.php | 6 +++--- shared/main.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fetchupd.php b/fetchupd.php index af5e55f..42ae883 100644 --- a/fetchupd.php +++ b/fetchupd.php @@ -23,7 +23,7 @@ require_once dirname(__FILE__).'/listid.php'; function uupApiPrivateParseFlags($str) { $split = explode('+', $str); - $flags = []; + $flagsSafe = []; if(isset($split[1])) { $flags = array_unique(explode(',', strtolower($split[1]))); @@ -67,8 +67,8 @@ function uupFetchUpd( $flight = ucwords(strtolower($flight)); $flight = 'Active'; - $buildWithFlags = $build; [$build, $flags] = uupApiPrivateParseFlags($build); + $flagsStr = implode(',', $flags); if($build == 'latest' || (!$build)) { $build = uupApiPrivateGetLatestBuild(); @@ -116,7 +116,7 @@ function uupFetchUpd( $type = 'Production'; } - $res = "api-fetch-$arch-$ring-$flight-$buildWithFlags-$minor-$sku-$type"; + $res = "api-fetch-$arch-$ring-$flight-$build-$flagsStr-$minor-$sku-$type"; $cache = new UupDumpCache($res); $fromCache = $cache->get(); if($fromCache !== false) return $fromCache; diff --git a/shared/main.php b/shared/main.php index cf4998d..1a9b5f2 100644 --- a/shared/main.php +++ b/shared/main.php @@ -16,7 +16,7 @@ limitations under the License. */ function uupApiVersion() { - return '1.43.3'; + return '1.43.4'; } require_once dirname(__FILE__).'/auths.php';