mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
chore(download): rename PKGBUILD function to match package
This commit is contained in:
parent
65b1c4be69
commit
b8641256ab
2
get.go
2
get.go
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user