From: Ansgar Burchardt Date: Mon, 9 Jul 2012 16:19:21 +0000 (-0600) Subject: daklib/archive.py: session → self.session X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6db70697649dd1a30d085d78643e1d6e9f3b8d5b;p=dak daklib/archive.py: session → self.session --- 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']) \