Added microg patch

This commit is contained in:
Nikhil Badyal
2023-07-14 22:26:20 +05:30
parent a0617da9a8
commit f364155897
6 changed files with 20 additions and 9 deletions
+3 -3
View File
@@ -16,14 +16,14 @@ class Github(Downloader):
:param app: App to download
"""
owner = str(kwargs["owner"])
repo_name = str(kwargs["name"])
logger.debug(f"Trying to download {app} from github")
if self.config.dry_run:
if self.config.dry_run or app == "microg":
logger.debug(
f"Skipping download of {app}. File already exists or dry running."
)
return
owner = str(kwargs["owner"])
repo_name = str(kwargs["name"])
repo_url = f"https://api.github.com/repos/{owner}/{repo_name}/releases/latest"
headers = {
"Content-Type": "application/vnd.github.v3+json",