]> git.ipfire.org Git - pbs.git/commitdiff
builds: Drop a few unused properties
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 28 Jun 2022 09:58:20 +0000 (09:58 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 28 Jun 2022 09:58:20 +0000 (09:58 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/builds.py
src/hub/queue.py

index 648675c5f28f4619f899e7425d85c554c27b43e5..40822d1020d9f5a7c75388d9def56edd9d5388aa 100644 (file)
@@ -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.
index 4e079555a28492cc6021ac5dd3babe13fb0db85a..d0cbbe72fabf0f51c7b52c6271309333a5d9eaee 100644 (file)
@@ -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,
                })