From b36294da4abe8a3550d9b8e48335f545f7e9d9eb Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Thu, 17 Oct 2019 21:24:48 +0100 Subject: Fix some missing branch constraints in package-versions-for-branch The lack of these meant that versions on other branches could appear in the results. --- guix-data-service/model/package.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guix-data-service/model/package.scm b/guix-data-service/model/package.scm index 6b2680f..c1cd2ae 100644 --- a/guix-data-service/model/package.scm +++ b/guix-data-service/model/package.scm @@ -229,6 +229,8 @@ INNER JOIN git_branches AS last_git_branches WHERE package_name = $1 AND package_versions_by_guix_revision_range.git_repository_id = $2 AND package_versions_by_guix_revision_range.branch_name = $3 +AND first_git_branches.name = $3 +AND last_git_branches.name = $3 ORDER BY first_datetime DESC, package_version DESC" (list package-name (number->string git-repository-id) -- cgit v1.2.3