forked from uup-dump/api
Add additional appx presence checks
This commit is contained in:
parent
faa3b7fa45
commit
5e31a6f724
1
get.php
1
get.php
@ -372,6 +372,7 @@ function uupGetFiles(
|
|||||||
'build' => $updateBuild,
|
'build' => $updateBuild,
|
||||||
'sku' => $updateSku,
|
'sku' => $updateSku,
|
||||||
'hasUpdates' => $hasUpdates,
|
'hasUpdates' => $hasUpdates,
|
||||||
|
'appxPresent' => uupAreAppxPresent($genPack),
|
||||||
'files' => $files,
|
'files' => $files,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ function uupListLangsInternal($updateId) {
|
|||||||
return [
|
return [
|
||||||
'langList' => $langList,
|
'langList' => $langList,
|
||||||
'langFancyNames' => $langListFancy,
|
'langFancyNames' => $langListFancy,
|
||||||
'appxPresent' => isset($genPack['neutral']['APP']),
|
'appxPresent' => uupAreAppxPresent($genPack),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function uupApiVersion() {
|
function uupApiVersion() {
|
||||||
return '1.46.0';
|
return '1.47.0';
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once dirname(__FILE__).'/auths.php';
|
require_once dirname(__FILE__).'/auths.php';
|
||||||
|
@ -199,3 +199,7 @@ function getAllowedFlags() {
|
|||||||
|
|
||||||
return $flags;
|
return $flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function uupAreAppxPresent($genPack) {
|
||||||
|
return isset($genPack['neutral']['APP']);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user