]> err.no Git - dak/commitdiff
daklib/archive.py: use SQLAlchemy 0.6 syntax for join
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 8 Jul 2012 18:29:54 +0000 (12:29 -0600)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 13 Jul 2012 16:43:17 +0000 (10:43 -0600)
daklib/archive.py

index b97d2f034c8d63fd1b3e4ee49e42a0e8ca73ed6d..edb9991404e2787c73a1b086fa630950c2643a0a 100644 (file)
@@ -802,7 +802,7 @@ class ArchiveUpload(object):
         changed_by = get_or_set_maintainer(control.get('Changed-By', control['Maintainer']), self.session)
 
         if source_suites is None:
-            source_suites = self.session.query(Suite).join(VersionCheck, VersionCheck.reference_id == Suite.suite_id).filter(VersionCheck.suite == suite).subquery()
+            source_suites = self.session.query(Suite).join((VersionCheck, VersionCheck.reference_id == Suite.suite_id)).filter(VersionCheck.suite == suite).subquery()
 
         source = self.changes.source
         if source is not None: