From ef919883120caae33901e52619e803df9c2e2feb Mon Sep 17 00:00:00 2001 From: Ian Walton Date: Tue, 3 Sep 2019 14:25:44 -0400 Subject: [PATCH] fix: Fix exception when updating via binary. Attempting to update Gitea using the binary mode results in an exception because `isTool` did not have a `self` parameter. This fixes the issue, allowing binary updates. --- gitea_auto_update/lib/download.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitea_auto_update/lib/download.py b/gitea_auto_update/lib/download.py index 68a8214..f178ad7 100644 --- a/gitea_auto_update/lib/download.py +++ b/gitea_auto_update/lib/download.py @@ -28,7 +28,7 @@ class Download: self.downloadGiteaFiles() self.checkAndExtract() - def isTool(name): + def isTool(self, name): # Function to check if tool is available ##Check whether `name` is on PATH and marked as executable. return which(name) is not None @@ -74,4 +74,4 @@ class Download: self.extractFile() else: logging.error('Download: error: sha256sum failed') - quit() \ No newline at end of file + quit()