136
137
SourcePackagePublishingHistory.distroseriesID == (
137
138
DistroSeriesDifference.parent_series_id),
143
143
SourcePackagePublishingHistory.distroseriesID == (
144
144
DistroSeriesDifference.derived_series_id),
146
146
# Ensure that the archive has the right purpose.
150
149
# DistroSeries.getPublishedSources() matches on MAIN_ARCHIVE_PURPOSES,
151
150
# but we are only ever going to be interested in PRIMARY archives.
152
151
Archive.purpose == ArchivePurpose.PRIMARY,