Minor flags fixes
This commit is contained in:
parent
4694c8dc00
commit
140613f657
@ -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;
|
||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
function uupApiVersion() {
|
||||
return '1.43.3';
|
||||
return '1.43.4';
|
||||
}
|
||||
|
||||
require_once dirname(__FILE__).'/auths.php';
|
||||
|
Loading…
Reference in New Issue
Block a user