]> git.ipfire.org Git - pbs.git/commitdiff
builds: Drop path property
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 28 Jun 2022 11:10:50 +0000 (11:10 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 28 Jun 2022 11:10:50 +0000 (11:10 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/builds.py
src/buildservice/constants.py.in

index 40822d1020d9f5a7c75388d9def56edd9d5388aa..daf641c0542b46556ba0d3ff6561cc314e13fad9 100644 (file)
@@ -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.
index 68c880900a82926e972102d04afa611b22cab6ab..4c2d96be4d635b983d37a59769a3d42fc25c1ba3 100644 (file)
@@ -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")