]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/dbconn.py: add path property to Suite
authorAnsgar Burchardt <ansgar@debian.org>
Fri, 15 Jun 2012 13:40:36 +0000 (15:40 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Tue, 24 Jul 2012 09:06:48 +0000 (11:06 +0200)
daklib/dbconn.py

index c1c3d9ef848b646b95a2f261453c63fbf69c6860..ca6befea8677dfd1ad5f94a51a42ef85410638d3 100755 (executable)
@@ -2999,6 +2999,10 @@ class Suite(ORMObject):
         else:
             return object_session(self).query(Suite).filter_by(suite_name=self.overridesuite).one()
 
+    @property
+    def path(self):
+        return os.path.join(self.archive.path, 'dists', self.suite_name)
+
 __all__.append('Suite')
 
 @session_wrapper