mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-01 14:56:30 +00:00
corrected package database connection description and documentation reference in UI
This commit is contained in:
parent
e2b12f2db7
commit
c37231189b
@ -238,8 +238,6 @@ func UpdatePacmanDbEntry(db []byte, md *Metadata) ([]byte, error) {
|
||||
// Add new package entry to list.
|
||||
entries[md.Name+"-"+md.Version+"/desc"] = []byte(md.GetDbDesc())
|
||||
|
||||
fmt.Println(entries)
|
||||
|
||||
var out bytes.Buffer
|
||||
|
||||
// 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) {
|
||||
gzf, err := gzip.NewReader(bytes.NewReader(dbarchive))
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return map[string][]byte{}, nil
|
||||
}
|
||||
|
||||
|
@ -3254,9 +3254,9 @@ alpine.repository = Repository Info
|
||||
alpine.repository.branches = Branches
|
||||
alpine.repository.repositories = Repositories
|
||||
alpine.repository.architectures = Architectures
|
||||
arch.pacmanconf = Add server to pacman.conf:
|
||||
arch.pacmansync = And 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.pacmanconf = Add server to pacman.conf with related distribution and architecture:
|
||||
arch.pacmansync = Sync package with pacman:
|
||||
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
|
||||
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:
|
||||
|
@ -111,7 +111,7 @@ func Push(ctx *context.Context) {
|
||||
func Get(ctx *context.Context) {
|
||||
var (
|
||||
file = ctx.Params("file")
|
||||
owner = ctx.Params("owner")
|
||||
owner = ctx.Params("username")
|
||||
distro = ctx.Params("distro")
|
||||
arch = ctx.Params("arch")
|
||||
)
|
||||
|
@ -6,16 +6,16 @@
|
||||
<div class="field">
|
||||
<label>{{svg "octicon-note"}} {{.locale.Tr "packages.arch.pacmanconf"}}</label>
|
||||
<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 class="field">
|
||||
<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 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>
|
||||
|
Loading…
Reference in New Issue
Block a user