mirror of
https://github.com/Jguer/yay
synced 2024-07-24 03:34:12 +00:00
Fix tests
This commit is contained in:
parent
005635b4ab
commit
04a9830e0b
3
cmd.go
3
cmd.go
|
@ -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) {
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue