Revert "Add support for channels, keep compatibility with rings"

This commit is contained in:
awuctl
2020-07-13 06:16:00 +02:00
committed by GitHub
parent 139838b42e
commit 7e3848ee93
4 changed files with 17 additions and 46 deletions

View File

@ -56,11 +56,11 @@ function uupFetchUpd(
return array('error' => 'UNKNOWN_ARCH');
}
if(!($ring == 'DEV' || $ring == 'BETA' || $ring == 'RELEASEPREVIEW' || $ring == 'WIF' || $ring == 'WIS' || $ring == 'RP' || $ring == 'RETAIL' || $ring == 'MSIT')) {
if(!($ring == 'WIF' || $ring == 'WIS' || $ring == 'RP' || $ring == 'RETAIL' || $ring == 'MSIT')) {
return array('error' => 'UNKNOWN_RING');
}
if(!($flight == 'Mainline' || $flight == 'Active' || $flight == 'Skip')) {
if(!($flight == 'Skip' || $flight == 'Active')) {
return array('error' => 'UNKNOWN_FLIGHT');
}
@ -305,8 +305,8 @@ function parseFetchUpdate($updateInfo, $out, $arch, $ring, $flight, $build, $sku
$temp = array();
$temp['title'] = $updateTitle;
$temp['channel'] = $ring;
$temp['content'] = $flight;
$temp['ring'] = $ring;
$temp['flight'] = $flight;
$temp['arch'] = $foundArch;
$temp['build'] = $foundBuild;
$temp['checkBuild'] = $build;