From aa53951c2fb3888568511705bc24c897539e961b Mon Sep 17 00:00:00 2001 From: mkuba50 Date: Sat, 23 Feb 2019 23:23:35 +0100 Subject: [PATCH] Fix something --- get.php | 13 +++++++++++++ shared/main.php | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/get.php b/get.php index 686c1a4..96e9c04 100644 --- a/get.php +++ b/get.php @@ -189,6 +189,7 @@ function uupGetFiles( $newFiles = array(); foreach($filesList as $val) { $name = uupCleanName($val); + $filesListKeys[] = $name; if(isset($files[$name])) { $newFiles[$name] = $files[$name]; @@ -197,6 +198,17 @@ function uupGetFiles( $files = $newFiles; $filesKeys = array_keys($files); + + $filesListKeys = array_unique($filesListKeys); + sort($filesListKeys); + $compare = array_diff($filesListKeys, $filesKeys); + + if(count($compare)) { + foreach($compare as $val) { + consoleLogger("Missing file: $val"); + } + return array('error' => 'MISSING_FILES'); + } } if(empty($filesKeys)) { @@ -373,6 +385,7 @@ function uupCleanName($name) { $replace = array( 'cabs_' => null, 'metadataesd_' => null, + 'prss_signed_appx_' => null, '~31bf3856ad364e35' => null, '~~.' => '.', '~.' => '.', diff --git a/shared/main.php b/shared/main.php index 91a6c66..769f649 100644 --- a/shared/main.php +++ b/shared/main.php @@ -16,7 +16,7 @@ limitations under the License. */ function uupApiVersion() { - return '1.20.2'; + return '1.20.3'; } require_once dirname(__FILE__).'/auths.php';