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) {
|
function uupApiPrivateParseFlags($str) {
|
||||||
$split = explode('+', $str);
|
$split = explode('+', $str);
|
||||||
$flags = [];
|
$flagsSafe = [];
|
||||||
|
|
||||||
if(isset($split[1])) {
|
if(isset($split[1])) {
|
||||||
$flags = array_unique(explode(',', strtolower($split[1])));
|
$flags = array_unique(explode(',', strtolower($split[1])));
|
||||||
@ -67,8 +67,8 @@ function uupFetchUpd(
|
|||||||
$flight = ucwords(strtolower($flight));
|
$flight = ucwords(strtolower($flight));
|
||||||
$flight = 'Active';
|
$flight = 'Active';
|
||||||
|
|
||||||
$buildWithFlags = $build;
|
|
||||||
[$build, $flags] = uupApiPrivateParseFlags($build);
|
[$build, $flags] = uupApiPrivateParseFlags($build);
|
||||||
|
$flagsStr = implode(',', $flags);
|
||||||
|
|
||||||
if($build == 'latest' || (!$build)) {
|
if($build == 'latest' || (!$build)) {
|
||||||
$build = uupApiPrivateGetLatestBuild();
|
$build = uupApiPrivateGetLatestBuild();
|
||||||
@ -116,7 +116,7 @@ function uupFetchUpd(
|
|||||||
$type = 'Production';
|
$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);
|
$cache = new UupDumpCache($res);
|
||||||
$fromCache = $cache->get();
|
$fromCache = $cache->get();
|
||||||
if($fromCache !== false) return $fromCache;
|
if($fromCache !== false) return $fromCache;
|
||||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function uupApiVersion() {
|
function uupApiVersion() {
|
||||||
return '1.43.3';
|
return '1.43.4';
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once dirname(__FILE__).'/auths.php';
|
require_once dirname(__FILE__).'/auths.php';
|
||||||
|
Loading…
Reference in New Issue
Block a user