From 79730cdd24fb41d07343cb56c5799b845e7dbcf7 Mon Sep 17 00:00:00 2001 From: eraseyourknees <112027564+eraseyourknees@users.noreply.github.com> Date: Thu, 15 Sep 2022 16:12:10 +0200 Subject: [PATCH] Add pack check helper function --- shared/main.php | 2 +- shared/utils.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/shared/main.php b/shared/main.php index 1bb826c..4b453b9 100644 --- a/shared/main.php +++ b/shared/main.php @@ -16,7 +16,7 @@ limitations under the License. */ function uupApiVersion() { - return '1.38.0'; + return '1.39.0-dev'; } require_once dirname(__FILE__).'/auths.php'; diff --git a/shared/utils.php b/shared/utils.php index 8c9c1cb..390a478 100644 --- a/shared/utils.php +++ b/shared/utils.php @@ -179,3 +179,7 @@ function uupApiReadJson($path) { function uupApiWriteJson($path, $data) { return file_put_contents($path, json_encode($data)."\n"); } + +function uupApiPacksExist($updateId) { + return file_exists('packs/'.$updateId.'.json.gz'); +}