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:
TheLabRatt 2013-02-28 17:55:43 +00:00
parent 1169196a96
commit a0f4a8a39b
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ def update():
logger.error("Unable to retrieve new version from "+tar_download_url+", can't update")
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)