mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 10:01:53 -05:00
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:
13
vote.go
13
vote.go
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user