Skip to content

Commit

Permalink
chore(download): rename PKGBUILD function to match package
Browse files Browse the repository at this point in the history
  • Loading branch information
Jguer committed Aug 5, 2021
1 parent 65b1c4b commit b864125
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion get.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
6 changes: 2 additions & 4 deletions pkg/download/unified.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b864125

Please sign in to comment.