From 502b65243657a5fc1b68e5924376dc26c0321edf Mon Sep 17 00:00:00 2001 From: mkuba50 Date: Sat, 30 Sep 2017 23:04:30 +0200 Subject: [PATCH] Add architecture reporting to get.php --- get.php | 2 ++ shared/main.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/get.php b/get.php index a0331ed..ba44e19 100644 --- a/get.php +++ b/get.php @@ -95,6 +95,7 @@ function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePac return array('error' => 'EMPTY_FILELIST'); } + $updateArch = (isset($info['arch'])) ? $info['arch'] : 'UNKNOWN'; $updateName = (isset($info['title'])) ? $info['title'] : 'Unknown update: '.$updateId; $info = $info['files']; $out = preg_replace('/|<\/FileLocation>/', '', $out[0]); @@ -220,6 +221,7 @@ function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePac return array( 'apiVersion' => uupApiVersion(), 'updateName' => $updateName, + 'arch' => $updateArch, 'files' => $files, ); } diff --git a/shared/main.php b/shared/main.php index ba5457e..3673000 100644 --- a/shared/main.php +++ b/shared/main.php @@ -16,7 +16,7 @@ limitations under the License. */ function uupApiVersion() { - return '0.5.1-beta'; + return '0.6.0-beta'; } function uupApiPrintBrand() {