From: Michael Tremer Date: Tue, 28 Jun 2022 09:58:20 +0000 (+0000) Subject: builds: Drop a few unused properties X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0010e815c73431aa4886c9b9da40c278c68a339;p=pbs.git builds: Drop a few unused properties Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/builds.py b/src/buildservice/builds.py index 648675c5..40822d10 100644 --- a/src/buildservice/builds.py +++ b/src/buildservice/builds.py @@ -580,22 +580,6 @@ class Build(base.DataObject): return os.path.join(*path) - @property - def source_filename(self): - return os.path.basename(self.pkg.path) - - @property - def download_prefix(self): - return "/".join((self.backend.settings.get("baseurl"), "packages")) - - @property - def source_download(self): - return "/".join((self.download_prefix, self.pkg.path)) - - @property - def source_hash_sha512(self): - return self.pkg.hash_sha512 - @property def link(self): # XXX maybe this should rather live in a uimodule. diff --git a/src/hub/queue.py b/src/hub/queue.py index 4e079555..d0cbbe72 100644 --- a/src/hub/queue.py +++ b/src/hub/queue.py @@ -139,5 +139,5 @@ class QueueHandler(BackendMixin, HTTPBasicAuthMixin, tornado.websocket.WebSocket "conf" : job.get_config(), # URL to the package - "pkg" : job.build.source_download, + "pkg" : job.pkg.download_url, })