wip: add split packages support

This commit is contained in:
2025-02-03 19:15:54 +03:00
parent 606cd5473a
commit 8978cc2855
16 changed files with 1282 additions and 743 deletions

View File

@ -21,7 +21,6 @@ import (
"sync"
"gitea.plemya-x.ru/Plemya-x/ALR/internal/config"
"gitea.plemya-x.ru/Plemya-x/ALR/internal/db"
database "gitea.plemya-x.ru/Plemya-x/ALR/internal/db"
"gitea.plemya-x.ru/Plemya-x/ALR/internal/types"
)
@ -41,7 +40,7 @@ func Pull(ctx context.Context, repos []types.Repo) error {
// It also returns a slice that contains the names of all packages that were not found.
//
// Deprecated: use struct method
func FindPkgs(ctx context.Context, pkgs []string) (map[string][]db.Package, []string, error) {
func FindPkgs(ctx context.Context, pkgs []string) (map[string][]database.Package, []string, error) {
return GetInstance(ctx).FindPkgs(ctx, pkgs)
}