Skip to content

Commit

Permalink
binrepos.conf: include "gentoo-build-publisher" and machine
Browse files Browse the repository at this point in the history
... and tag if specified.
  • Loading branch information
enku committed Sep 14, 2024
1 parent 27f880c commit eee3fe9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[binhost]
[gentoo-build-publisher/{{ machine }}]
sync-uri = {{ uri }}
priority = 10
5 changes: 4 additions & 1 deletion src/gentoo_build_publisher/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ def binrepos_dot_conf(request: HttpRequest, machine: str) -> HttpResponse:
"""Create a binrepos.conf entry for the given machine"""
[*_, dirname] = parse_tag_or_raise_404(machine)

context = {"uri": request.build_absolute_uri(f"/binpkgs/{dirname}/")}
context = {
"machine": machine,
"uri": request.build_absolute_uri(f"/binpkgs/{dirname}/"),
}
return render(
request,
"gentoo_build_publisher/binrepos.conf",
Expand Down

0 comments on commit eee3fe9

Please sign in to comment.