From: Michael Tremer Date: Tue, 28 Jun 2022 11:10:50 +0000 (+0000) Subject: builds: Drop path property X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c735b31423edbfd6b63690aee0ce12297f736eb;p=pbs.git builds: Drop path property Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/builds.py b/src/buildservice/builds.py index 40822d10..daf641c0 100644 --- a/src/buildservice/builds.py +++ b/src/buildservice/builds.py @@ -563,23 +563,6 @@ class Build(base.DataObject): priority = property(get_priority, set_priority) - @property - def path(self): - path = [] - if self.type == "scratch": - path.append(BUILD_SCRATCH_DIR) - path.append(self.uuid) - - elif self.type == "release": - path.append(BUILD_RELEASE_DIR) - path.append("%s/%s-%s-%s" % \ - (self.pkg.name, self.pkg.epoch, self.pkg.version, self.pkg.release)) - - else: - raise Exception("Unknown build type: %s" % self.type) - - return os.path.join(*path) - @property def link(self): # XXX maybe this should rather live in a uimodule. diff --git a/src/buildservice/constants.py.in b/src/buildservice/constants.py.in index 68c88090..4c2d96be 100644 --- a/src/buildservice/constants.py.in +++ b/src/buildservice/constants.py.in @@ -15,8 +15,6 @@ STATICDIR = "@staticdir@" PAKFIRE_DIR = "/pub/pakfire" PACKAGES_DIR = os.path.join(PAKFIRE_DIR, "packages") -BUILD_RELEASE_DIR = os.path.join(PACKAGES_DIR, "release") -BUILD_SCRATCH_DIR = os.path.join(PACKAGES_DIR, "scratch") REPOS_DIR = os.path.join(PAKFIRE_DIR, "repos") SOURCES_DIR = os.path.join(PAKFIRE_DIR, "sources")