Add pack check helper function
This commit is contained in:
parent
cf57876aca
commit
79730cdd24
@ -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';
|
||||
|
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user