1
0
mirror of https://github.com/CMiksche/gitea-auto-update synced 2025-12-10 07:57:23 +01:00

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.
This commit is contained in:
Ian Walton
2019-09-03 14:25:44 -04:00
parent 3828e07d90
commit ef91988312

View File

@@ -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()
quit()