corrected package database connection description and documentation reference in UI

This commit is contained in:
dancheg97 2023-06-24 18:08:18 +03:00
parent e2b12f2db7
commit c37231189b
4 changed files with 7 additions and 10 deletions

View File

@ -238,8 +238,6 @@ func UpdatePacmanDbEntry(db []byte, md *Metadata) ([]byte, error) {
// Add new package entry to list. // Add new package entry to list.
entries[md.Name+"-"+md.Version+"/desc"] = []byte(md.GetDbDesc()) entries[md.Name+"-"+md.Version+"/desc"] = []byte(md.GetDbDesc())
fmt.Println(entries)
var out bytes.Buffer var out bytes.Buffer
// Write entries to new buffer and return it. // Write entries to new buffer and return it.
@ -255,7 +253,6 @@ func UpdatePacmanDbEntry(db []byte, md *Metadata) ([]byte, error) {
func readEntries(dbarchive []byte) (map[string][]byte, error) { func readEntries(dbarchive []byte) (map[string][]byte, error) {
gzf, err := gzip.NewReader(bytes.NewReader(dbarchive)) gzf, err := gzip.NewReader(bytes.NewReader(dbarchive))
if err != nil { if err != nil {
fmt.Println(err)
return map[string][]byte{}, nil return map[string][]byte{}, nil
} }

View File

@ -3254,9 +3254,9 @@ alpine.repository = Repository Info
alpine.repository.branches = Branches alpine.repository.branches = Branches
alpine.repository.repositories = Repositories alpine.repository.repositories = Repositories
alpine.repository.architectures = Architectures alpine.repository.architectures = Architectures
arch.pacmanconf = Add server to pacman.conf: arch.pacmanconf = Add server to pacman.conf with related distribution and architecture:
arch.pacmansync = And sync package with pacman: arch.pacmansync = Sync package with pacman:
arch.documentation = For more information on the Arch registry, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>. arch.documentation = For more information on the arch mirrors, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
arch.properties = Package properties arch.properties = Package properties
cargo.registry = Setup this registry in the Cargo configuration file (for example <code>~/.cargo/config.toml</code>): cargo.registry = Setup this registry in the Cargo configuration file (for example <code>~/.cargo/config.toml</code>):
cargo.install = To install the package using Cargo, run the following command: cargo.install = To install the package using Cargo, run the following command:

View File

@ -111,7 +111,7 @@ func Push(ctx *context.Context) {
func Get(ctx *context.Context) { func Get(ctx *context.Context) {
var ( var (
file = ctx.Params("file") file = ctx.Params("file")
owner = ctx.Params("owner") owner = ctx.Params("username")
distro = ctx.Params("distro") distro = ctx.Params("distro")
arch = ctx.Params("arch") arch = ctx.Params("arch")
) )

View File

@ -6,16 +6,16 @@
<div class="field"> <div class="field">
<label>{{svg "octicon-note"}} {{.locale.Tr "packages.arch.pacmanconf"}}</label> <label>{{svg "octicon-note"}} {{.locale.Tr "packages.arch.pacmanconf"}}</label>
<div class="markup"><pre class="code-block"><code>[{{.PackageDescriptor.Owner.LowerName}}.{{.PackageDescriptor.Metadata.BaseDomain}}] <div class="markup"><pre class="code-block"><code>[{{.PackageDescriptor.Owner.LowerName}}.{{.PackageDescriptor.Metadata.BaseDomain}}]
Server = https://{{.PackageDescriptor.Metadata.BaseDomain}}/api/packages/arch/(distribution)/(architecture)/{{.PackageDescriptor.Owner.LowerName}}</code></pre></div> Server = https://{{.PackageDescriptor.Metadata.BaseDomain}}/api/packages/{{.PackageDescriptor.Owner.LowerName}}/arch/archlinux/x86_64</code></pre></div>
</div> </div>
<div class="field"> <div class="field">
<label>{{svg "octicon-clock"}} {{.locale.Tr "packages.arch.pacmansync"}}</label> <label>{{svg "octicon-clock"}} {{.locale.Tr "packages.arch.pacmansync"}}</label>
<div class="markup"><pre class="code-block"><code>pacman -S {{.PackageDescriptor.Package.LowerName}}</code></pre></div> <div class="markup"><pre class="code-block"><code>pacman -Sy {{.PackageDescriptor.Package.LowerName}}</code></pre></div>
</div> </div>
<div class="field"> <div class="field">
<label>{{.locale.Tr "packages.arch.documentation" "https://docs.gitea.io/en-us/usage/packages/arch/" | Safe}}</label> <label>{{.locale.Tr "packages.arch.documentation" "https://wiki.archlinux.org/title/mirrors" | Safe}}</label>
</div> </div>
</div> </div>
</div> </div>