]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/archive.py: use only enhanced suites as default source_suites
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 14:05:05 +0000 (16:05 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 14:05:05 +0000 (16:05 +0200)
daklib/archive.py

index 2aaf86fd436d3cc6bb6ce9da2f4491d2c84be8ff..866ee891bf162ef2f21b2425672d1f18a8373625 100644 (file)
@@ -913,7 +913,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.check == 'Enhances').filter(VersionCheck.suite == suite).subquery()
 
         source = self.changes.source
         if source is not None: