alr изменения

This commit is contained in:
2024-05-05 13:32:08 +03:00
parent b94c39ccff
commit d427b37e23
73 changed files with 411 additions and 1213 deletions

View File

@ -10,8 +10,8 @@ import (
"strconv"
"strings"
"lure.sh/lure/internal/config"
"lure.sh/lure/internal/db"
"plemya-x.ru/alr/internal/config"
"plemya-x.ru/alr/internal/db"
)
// Filter represents search filters.
@ -35,7 +35,7 @@ const (
SortByVersion
)
// Package represents a package from LURE's database
// Package represents a package from ALR's database
type Package struct {
Name string
Version string
@ -155,7 +155,7 @@ func GetScript(ctx context.Context, repo, name string) (io.ReadCloser, error) {
return nil, ErrInvalidArgument
}
scriptPath := filepath.Join(config.GetPaths(ctx).RepoDir, repo, name, "lure.sh")
scriptPath := filepath.Join(config.GetPaths(ctx).RepoDir, repo, name, "alr.sh")
fl, err := os.Open(scriptPath)
if errors.Is(err, fs.ErrNotExist) {
return nil, ErrScriptNotFound