]> err.no Git - dak/commitdiff
daklib/archive.py: session → self.session
authorAnsgar Burchardt <ansgar@debian.org>
Mon, 9 Jul 2012 16:19:21 +0000 (10:19 -0600)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 13 Jul 2012 16:44:59 +0000 (10:44 -0600)
daklib/archive.py

index 2ee4d89b04cd970576f2dbcd6f7e6a9d5c0bf939..d6f8f2f6155c944e5c40483ffa62726159a5b624 100644 (file)
@@ -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']) \