mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-01 14:56:30 +00:00
removed/corrected some documentation
This commit is contained in:
parent
eb7f51acdf
commit
ce01499d8f
@ -127,7 +127,6 @@ func Get(ctx *context.Context) {
|
|||||||
arch = ctx.Params("arch")
|
arch = ctx.Params("arch")
|
||||||
)
|
)
|
||||||
|
|
||||||
// Packages are loaded directly from object storage.
|
|
||||||
if strings.HasSuffix(file, ".pkg.tar.zst") {
|
if strings.HasSuffix(file, ".pkg.tar.zst") {
|
||||||
pkg, err := arch_service.GetFileObject(ctx, distro, file)
|
pkg, err := arch_service.GetFileObject(ctx, distro, file)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -141,7 +140,6 @@ func Get(ctx *context.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Signatures are loaded from package file properties in SQL db.
|
|
||||||
if strings.HasSuffix(file, ".pkg.tar.zst.sig") {
|
if strings.HasSuffix(file, ".pkg.tar.zst.sig") {
|
||||||
p, err := pkg_model.GetPropertieWithUniqueName(ctx, distro+"-"+file)
|
p, err := pkg_model.GetPropertieWithUniqueName(ctx, distro+"-"+file)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -161,9 +159,6 @@ func Get(ctx *context.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pacman databases is not stored in gitea storage and created 'on-request'
|
|
||||||
// for user/organization scope with accordance to requested architecture
|
|
||||||
// and distribution.
|
|
||||||
if strings.HasSuffix(file, ".db.tar.gz") || strings.HasSuffix(file, ".db") {
|
if strings.HasSuffix(file, ".db.tar.gz") || strings.HasSuffix(file, ".db") {
|
||||||
db, err := arch_service.CreatePacmanDb(ctx, &arch_service.DbParams{
|
db, err := arch_service.CreatePacmanDb(ctx, &arch_service.DbParams{
|
||||||
Owner: owner,
|
Owner: owner,
|
||||||
@ -184,7 +179,7 @@ func Get(ctx *context.Context) {
|
|||||||
ctx.Status(http.StatusNotFound)
|
ctx.Status(http.StatusNotFound)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove specific package version, related files and pacman database entry.
|
// Remove specific package version, related files with properties.
|
||||||
func Remove(ctx *context.Context) {
|
func Remove(ctx *context.Context) {
|
||||||
var (
|
var (
|
||||||
pkg = ctx.Params("package")
|
pkg = ctx.Params("package")
|
||||||
|
Loading…
Reference in New Issue
Block a user