From: Ansgar Burchardt Date: Sun, 12 Aug 2012 14:05:05 +0000 (+0200) Subject: daklib/archive.py: use only enhanced suites as default source_suites X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=bf958a0d3fbb8dd9882ecedfccf4f0e57885b9ad;p=dak.git daklib/archive.py: use only enhanced suites as default source_suites --- diff --git a/daklib/archive.py b/daklib/archive.py index 2aaf86fd..866ee891 100644 --- a/daklib/archive.py +++ b/daklib/archive.py @@ -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: