chore(yay): lift legacy engine (#2189)

* remove legacy engine

* remove legacy dep handlers

* use prepare for gendb

* remove unused method

* remove aur client old interface

* remove unused menu fns

* remove inactive upgrademenu option

* unexport printInfo
This commit is contained in:
Jo
2023-05-24 10:22:18 +02:00
committed by GitHub
parent c1aa71bee1
commit e28319fece
41 changed files with 123 additions and 2515 deletions

13
vote.go
View File

@@ -5,11 +5,9 @@ import (
"errors"
"fmt"
"github.com/Jguer/aur/rpc"
"github.com/Jguer/aur"
"github.com/Jguer/votar/pkg/vote"
"github.com/leonelquinteros/gotext"
"github.com/Jguer/yay/v12/pkg/query"
)
type ErrAURVote struct {
@@ -22,10 +20,13 @@ func (e *ErrAURVote) Error() string {
}
func handlePackageVote(ctx context.Context,
targets []string, aurClient rpc.ClientInterface,
voteClient *vote.Client, splitN int, upvote bool,
targets []string, aurClient aur.QueryClient,
voteClient *vote.Client, upvote bool,
) error {
infos, err := query.AURInfoPrint(ctx, aurClient, targets, splitN)
infos, err := aurClient.Get(ctx, &aur.Query{
Needles: targets,
By: aur.Name,
})
if err != nil {
return err
}