1
0
mirror of https://github.com/Jguer/yay synced 2024-07-03 08:51:44 +00:00

fix(yay): fix panic -Si when package is missing (#2111)

fix panic -Si
This commit is contained in:
Jo 2023-04-11 18:45:20 +02:00 committed by GitHub
parent 4a9c736e2a
commit 26c9ab5a87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ func cleanAUR(ctx context.Context, config *settings.Configuration,
// Querying the AUR is slow and needs internet so don't do it if we
// don't need to.
if keepCurrent {
info, errInfo := query.AURInfo(ctx, config.Runtime.AURClient, cachedPackages, &query.AURWarnings{}, config.RequestSplitN)
info, errInfo := query.AURInfo(ctx, config.Runtime.AURClient, cachedPackages, query.NewWarnings(nil), config.RequestSplitN)
if errInfo != nil {
return errInfo
}

View File

@ -88,7 +88,7 @@ func AURInfo(ctx context.Context, aurClient rpc.ClientInterface, names []string,
func AURInfoPrint(ctx context.Context, aurClient rpc.ClientInterface, names []string, splitN int) ([]Pkg, error) {
text.OperationInfoln(gotext.Get("Querying AUR..."))
warnings := &AURWarnings{}
warnings := NewWarnings(nil)
info, err := AURInfo(ctx, aurClient, names, warnings, splitN)
if err != nil {