From f2b3db04952a94011b8f459f701d6aff2ef9b2ed Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Fri, 15 Jun 2012 15:40:36 +0200 Subject: [PATCH] daklib/dbconn.py: add path property to Suite --- daklib/dbconn.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daklib/dbconn.py b/daklib/dbconn.py index c1c3d9ef..ca6befea 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -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 -- 2.39.5