Add method for auto-check modules

This commit is contained in:
Oleg Korshul
2023-11-17 15:09:49 +03:00
parent f78ab48afa
commit 8289a0534f
2 changed files with 7 additions and 2 deletions

View File

@ -22,6 +22,13 @@ def read_files(folder, addon=""):
ret_data[i] = addon + ret_data[i]
return ret_data
def clear_module():
if base.is_dir("harfbuzz"):
base.delete_dir_with_access_error("harfbuzz")
return
base.check_module_version("1", clear_module)
# fetch harfbuzz
if not base.is_dir("harfbuzz"):
base.cmd("git", ["clone", "https://github.com/harfbuzz/harfbuzz.git"])