install: fix download dir when fetching from GitHub Releases
This commit is contained in:
parent
8c81033ea3
commit
8fc340aaca
@ -115,7 +115,8 @@ def download_fdroid_apk_from_github(privacy_mode=False):
|
|||||||
token = None
|
token = None
|
||||||
gh = github.GithubApi(token, 'https://github.com/f-droid/fdroidclient')
|
gh = github.GithubApi(token, 'https://github.com/f-droid/fdroidclient')
|
||||||
latest_apk = gh.get_latest_apk()
|
latest_apk = gh.get_latest_apk()
|
||||||
return net.download_file(latest_apk)
|
filename = os.path.basename(latest_apk)
|
||||||
|
return net.download_file(latest_apk, os.path.join(common.get_cachedir(), filename))
|
||||||
|
|
||||||
|
|
||||||
def download_fdroid_apk_from_ipns(privacy_mode=False):
|
def download_fdroid_apk_from_ipns(privacy_mode=False):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user