Fix tests

This commit is contained in:
morganamilo 2018-02-27 03:41:39 +00:00
parent 005635b4ab
commit 04a9830e0b
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E
2 changed files with 4 additions and 5 deletions

3
cmd.go
View file

@ -59,8 +59,7 @@ Yay specific options:
-c --clean Remove unneeded dependencies
--gendb Generates development package DB used for updating.
If no operation is provided -Y will be assumed
`)
If no operation is provided -Y will be assumed`)
}
func initYay() (err error) {

View file

@ -179,7 +179,7 @@ func install(parser *arguments) error {
return nil
}
err = downloadPkgBuildsSources(dc.Aur)
err = downloadPkgBuildsSources(dc.Aur, dc.Bases)
if err != nil {
return err
}
@ -389,12 +389,12 @@ func dowloadPkgBuilds(pkgs []*rpc.Pkg, bases map[string][]*rpc.Pkg) (err error)
return
}
func downloadPkgBuildsSources(pkgs []*rpc.Pkg) (err error) {
func downloadPkgBuildsSources(pkgs []*rpc.Pkg, bases map[string][]*rpc.Pkg) (err error) {
for _, pkg := range pkgs {
dir := config.BuildDir + pkg.PackageBase + "/"
err = passToMakepkg(dir, "--nobuild", "--nocheck", "--noprepare", "--nodeps")
if err != nil {
return fmt.Errorf("Error downloading sources: %s", pkg)
return fmt.Errorf("Error downloading sources: %s", formatPkgbase(pkg, bases))
}
}