mirror of https://github.com/evilhero/mylar
Fix for updates to Zip (ie. non-git) installs
Additionall strip the parameters from the download URL leaving only the filename and no ? - which was breaking it
This commit is contained in:
parent
1169196a96
commit
a0f4a8a39b
|
@ -188,7 +188,7 @@ def update():
|
||||||
logger.error("Unable to retrieve new version from "+tar_download_url+", can't update")
|
logger.error("Unable to retrieve new version from "+tar_download_url+", can't update")
|
||||||
return
|
return
|
||||||
|
|
||||||
download_name = data.geturl().split('/')[-1]
|
download_name = data.geturl().split('/')[-1].split('?')[0]
|
||||||
|
|
||||||
tar_download_path = os.path.join(mylar.PROG_DIR, download_name)
|
tar_download_path = os.path.join(mylar.PROG_DIR, download_name)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue