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'); +}