From a0f4a8a39bbb31ff36f55ff9ee86bf9f1fe1f30d Mon Sep 17 00:00:00 2001 From: TheLabRatt Date: Thu, 28 Feb 2013 17:55:43 +0000 Subject: [PATCH] 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 --- mylar/versioncheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mylar/versioncheck.py b/mylar/versioncheck.py index fa7b6326..c59a9d6c 100755 --- a/mylar/versioncheck.py +++ b/mylar/versioncheck.py @@ -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)