Explorar o código

fix(sync): add missing Replaces to -Si (#2257)

Jo hai 1 ano
pai
achega
7483393377
Modificáronse 1 ficheiros con 8 adicións e 7 borrados
  1. 8 7
      print.go

+ 8 - 7
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))