From 748339337730970eedacfc43d241d89ec69913f6 Mon Sep 17 00:00:00 2001 From: Jo Date: Wed, 2 Aug 2023 09:45:14 +0200 Subject: [PATCH] fix(sync): add missing Replaces to -Si (#2257) --- print.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/print.go b/print.go index b6583b5a5..d9775f349 100644 --- a/print.go +++ b/print.go @@ -24,24 +24,25 @@ import ( func printInfo(config *settings.Configuration, a *aur.Pkg, extendedInfo bool) { text.PrintInfoValue(gotext.Get("Repository"), "aur") text.PrintInfoValue(gotext.Get("Name"), a.Name) - text.PrintInfoValue(gotext.Get("Keywords"), a.Keywords...) text.PrintInfoValue(gotext.Get("Version"), a.Version) text.PrintInfoValue(gotext.Get("Description"), a.Description) text.PrintInfoValue(gotext.Get("URL"), a.URL) - text.PrintInfoValue(gotext.Get("AUR URL"), config.AURURL+"/packages/"+a.Name) - text.PrintInfoValue(gotext.Get("Groups"), a.Groups...) text.PrintInfoValue(gotext.Get("Licenses"), a.License...) + text.PrintInfoValue(gotext.Get("Groups"), a.Groups...) text.PrintInfoValue(gotext.Get("Provides"), a.Provides...) text.PrintInfoValue(gotext.Get("Depends On"), a.Depends...) + text.PrintInfoValue(gotext.Get("Optional Deps"), a.OptDepends...) text.PrintInfoValue(gotext.Get("Make Deps"), a.MakeDepends...) text.PrintInfoValue(gotext.Get("Check Deps"), a.CheckDepends...) - text.PrintInfoValue(gotext.Get("Optional Deps"), a.OptDepends...) text.PrintInfoValue(gotext.Get("Conflicts With"), a.Conflicts...) - text.PrintInfoValue(gotext.Get("Maintainer"), a.Maintainer) - text.PrintInfoValue(gotext.Get("Votes"), fmt.Sprintf("%d", a.NumVotes)) - text.PrintInfoValue(gotext.Get("Popularity"), fmt.Sprintf("%f", a.Popularity)) + text.PrintInfoValue(gotext.Get("Replaces"), a.Replaces...) + text.PrintInfoValue(gotext.Get("AUR URL"), config.AURURL+"/packages/"+a.Name) text.PrintInfoValue(gotext.Get("First Submitted"), text.FormatTimeQuery(a.FirstSubmitted)) + text.PrintInfoValue(gotext.Get("Keywords"), a.Keywords...) text.PrintInfoValue(gotext.Get("Last Modified"), text.FormatTimeQuery(a.LastModified)) + text.PrintInfoValue(gotext.Get("Maintainer"), a.Maintainer) + text.PrintInfoValue(gotext.Get("Popularity"), fmt.Sprintf("%f", a.Popularity)) + text.PrintInfoValue(gotext.Get("Votes"), fmt.Sprintf("%d", a.NumVotes)) if a.OutOfDate != 0 { text.PrintInfoValue(gotext.Get("Out-of-date"), text.FormatTimeQuery(a.OutOfDate))