forked from uup-dump/api
		
	Fix download of CU from updates that are not explicitly marked as CU
This commit is contained in:
		
							
								
								
									
										9
									
								
								get.php
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								get.php
									
									
									
									
									
								
							| @@ -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': | ||||
|   | ||||
| @@ -16,7 +16,7 @@ limitations under the License. | ||||
| */ | ||||
|  | ||||
| function uupApiVersion() { | ||||
|     return '1.15.12'; | ||||
|     return '1.15.13'; | ||||
| } | ||||
|  | ||||
| require_once dirname(__FILE__).'/auths.php'; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user