2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/data-service.git synced 2023-12-14 03:23:03 +01:00

Make the package-reproducibility page work for the latest revision

This commit is contained in:
Christopher Baines 2020-06-03 20:06:26 +01:00
parent 11b13edac9
commit 67cda8f9cc
2 changed files with 12 additions and 0 deletions

View file

@ -201,6 +201,17 @@
(render-unknown-revision mime-types
conn
commit-hash))))
(('GET "repository" repository-id "branch" branch-name "latest-processed-revision" "package-reproducibility")
(let ((commit-hash
(latest-processed-commit-for-branch conn repository-id branch-name)))
(if commit-hash
(render-revision-package-reproduciblity mime-types
conn
commit-hash
#:path-base path)
(render-unknown-revision mime-types
conn
commit-hash))))
(('GET "repository" repository-id "branch" branch-name "latest-processed-revision"
"lint-warnings")
(let ((commit-hash

View file

@ -53,6 +53,7 @@
render-revision-lint-warnings
render-revision-package-version
render-revision-packages
render-revision-package-reproduciblity
render-revision-package-derivations
render-unknown-revision
render-view-revision))