chore(download): rename PKGBUILD function to match package

This commit is contained in:
jguer 2021-08-02 21:09:53 +02:00 committed by J Guerreiro
parent 65b1c4be69
commit b8641256ab
2 changed files with 3 additions and 5 deletions

2
get.go
View file

@ -16,7 +16,7 @@ import (
// yay -Gp
func printPkgbuilds(dbExecutor db.Executor, httpClient *http.Client, targets []string) error {
pkgbuilds, err := download.GetPkgbuilds(dbExecutor, httpClient, targets, config.Runtime.Mode)
pkgbuilds, err := download.PKGBUILDs(dbExecutor, httpClient, targets, config.Runtime.Mode)
if err != nil {
text.Errorln(err)
}

View file

@ -71,7 +71,7 @@ func getURLName(pkg db.IPackage) string {
return name
}
func GetPkgbuilds(dbExecutor DBSearcher, httpClient *http.Client, targets []string, mode settings.TargetMode) (map[string][]byte, error) {
func PKGBUILDs(dbExecutor DBSearcher, httpClient *http.Client, targets []string, mode settings.TargetMode) (map[string][]byte, error) {
pkgbuilds := make(map[string][]byte, len(targets))
var (
@ -149,9 +149,7 @@ func PKGBUILDRepos(dbExecutor DBSearcher,
wg.Add(1)
go func(target, dbName, pkgName string, aur bool) {
var (
err error
)
var err error
if aur {
err = AURPKGBUILDRepo(cmdRunner, cmdBuilder, aurURL, pkgName, dest, force)