← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~cjwatson/launchpad:fix-remove-unnecessary-xpr-joins into launchpad:master

 

Colin Watson has proposed merging ~cjwatson/launchpad:fix-remove-unnecessary-xpr-joins into launchpad:master.

Commit message:
Fix typo in removal of unnecessary SPR join

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/430812

Regression introduced by https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/430028.
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:fix-remove-unnecessary-xpr-joins into launchpad:master.
diff --git a/lib/lp/soyuz/model/archive.py b/lib/lp/soyuz/model/archive.py
index 982f206..9494fa4 100644
--- a/lib/lp/soyuz/model/archive.py
+++ b/lib/lp/soyuz/model/archive.py
@@ -2845,7 +2845,7 @@ class Archive(SQLBase):
                 (LibraryFileAlias.filename, LibraryFileContent.sha1),
                 SourcePackagePublishingHistory.archive == self,
                 SourcePackagePublishingHistory.sourcepackagerelease
-                == SourcePackageReleaseFile.sourcepackagerelease,
+                == SourcePackageReleaseFile.sourcepackagereleaseID,
                 LibraryFileAlias.id == SourcePackageReleaseFile.libraryfileID,
                 LibraryFileAlias.filename.is_in(source_files),
                 LibraryFileContent.id == LibraryFileAlias.contentID,