Fix download of CU from updates that are not explicitly marked as CU

This commit is contained in:
mkuba50 2018-10-31 18:21:10 +01:00
parent d01e2ad508
commit e28e612dd2
2 changed files with 5 additions and 6 deletions

View File

@ -105,11 +105,7 @@ function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePac
case 'WUBFILE': break;
case 'UPDATEONLY':
if(!isset($info['containsCU']) || !$info['containsCU']) {
return array('error' => 'NOT_CUMULATIVE_UPDATE');
}
break;
case 'UPDATEONLY': break;
default:
if($useGeneratedPacks) {
@ -301,6 +297,9 @@ function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePac
$filesKeys = array_keys($files);
$filesKeys = preg_grep('/Windows10\.0-KB/i', $filesKeys);
if(count($filesKeys) == 0) {
return array('error' => 'NOT_CUMULATIVE_UPDATE');
}
break;
case 'WUBFILE':

View File

@ -16,7 +16,7 @@ limitations under the License.
*/
function uupApiVersion() {
return '1.15.12';
return '1.15.13';
}
require_once dirname(__FILE__).'/auths.php';