From 6db70697649dd1a30d085d78643e1d6e9f3b8d5b Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Mon, 9 Jul 2012 10:19:21 -0600 Subject: [PATCH] =?utf8?q?daklib/archive.py:=20session=20=E2=86=92=20self.?= =?utf8?q?session?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- daklib/archive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daklib/archive.py b/daklib/archive.py index 2ee4d89b..d6f8f2f6 100644 --- a/daklib/archive.py +++ b/daklib/archive.py @@ -693,7 +693,7 @@ class ArchiveUpload(object): daklib.dbconn.Override or None """ if suite.overridesuite is not None: - suite = session.query(Suite).filter_by(suite_name=suite.overridesuite).one() + suite = self.session.query(Suite).filter_by(suite_name=suite.overridesuite).one() query = self.session.query(Override).filter_by(suite=suite, package=binary.control['Package']) \ .join(Component).filter(Component.component_name == binary.component) \ @@ -715,7 +715,7 @@ class ArchiveUpload(object): daklib.dbconn.Override or None """ if suite.overridesuite is not None: - suite = session.query(Suite).filter_by(suite_name=suite.overridesuite).one() + suite = self.session.query(Suite).filter_by(suite_name=suite.overridesuite).one() # XXX: component for source? query = self.session.query(Override).filter_by(suite=suite, package=source.dsc['Source']) \ -- 2.39.5