Skip to content

Commit 240beed

Browse files
committed
Fix Arch repo pacman.conf snippet
1 parent 685c8c3 commit 240beed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

templates/package/content/arch.tmpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
<div class="ui form">
55
<div class="field">
66
<label>{{svg "octicon-gear"}} {{ctx.Locale.Tr "packages.arch.registry"}}</label>
7-
<div class="markup"><pre class="code-block"><code>[{{.PackageDescriptor.Owner.LowerName}}.{{.PackageRegistryHost}}]
7+
<div class="markup"><pre class="code-block"><code>{{ range $i, $repo := .Repositories }}{{ if $i }}
8+
{{ end }}[{{ $repo }}]
89
SigLevel = Optional TrustAll
9-
Server = <origin-url data-url="{{AppSubUrl}}/api/packages/{{.PackageDescriptor.Owner.Name}}/arch/$repo/$arch"></origin-url></code></pre></div>
10+
Server = <origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/arch/$repo/$arch"></origin-url>
11+
{{ end }}</code></pre></div>
1012
</div>
1113
<div class="field">
1214
<label>{{svg "octicon-sync"}} {{ctx.Locale.Tr "packages.arch.install"}}</label>

0 commit comments

Comments
 (0)