forked from uup-dump/api
		
	Save architecture used to fetch the build to fileinfo
This commit is contained in:
		| @@ -433,6 +433,7 @@ function parseFetchUpdate($updateInfo, $out, $arch, $ring, $flight, $build, $sku | ||||
|         $temp['flight'] = $flight; | ||||
|         $temp['branch'] = $branch; | ||||
|         $temp['arch'] = $foundArch; | ||||
|         $temp['fetchArch'] = $arch == 'all' ? 'amd64' : $arch; | ||||
|         $temp['build'] = $foundBuild; | ||||
|         $temp['checkBuild'] = $build; | ||||
|         $temp['sku'] = $sku; | ||||
|   | ||||
| @@ -16,7 +16,7 @@ limitations under the License. | ||||
| */ | ||||
|  | ||||
| function uupApiVersion() { | ||||
|     return '1.44.3'; | ||||
|     return '1.45.0'; | ||||
| } | ||||
|  | ||||
| require_once dirname(__FILE__).'/auths.php'; | ||||
|   | ||||
| @@ -316,11 +316,19 @@ function composeFileGetRequest($updateId, $info, $rev = 1, $type = 'Production') | ||||
|     $created = gmdate(DATE_W3C, $createdTime); | ||||
|     $expires = gmdate(DATE_W3C, $expiresTime); | ||||
|  | ||||
|     $arch = 'amd64'; | ||||
|  | ||||
|     if(isset($info['fetchArch'])) { | ||||
|         $arch = $info['fetchArch']; | ||||
|     } elseif(isset($info['arch'])) { | ||||
|         $arch = $info['arch']; | ||||
|     } | ||||
|  | ||||
|     $deviceAttributes = composeDeviceAttributes( | ||||
|         isset($info['flight']) ? $info['flight'] : 'Active', | ||||
|         isset($info['ring']) ? $info['ring'] : 'RETAIL', | ||||
|         isset($info['checkBuild']) ? $info['checkBuild'] : '10.0.19041.1', | ||||
|         isset($info['arch']) ? $info['arch'] : 'amd64', | ||||
|         $arch, | ||||
|         isset($info['sku']) ? $info['sku'] : 48, | ||||
|         $type, | ||||
|         isset($info['flags']) ? $info['flags'] : [], | ||||
|   | ||||
		Reference in New Issue
	
	Block a user