Fixed no target on AUR Install

This commit is contained in:
Jguer 2016-12-01 19:57:53 +00:00
parent 624b519de5
commit 7d6eb8fdbe

View File

@ -255,7 +255,7 @@ func (a *Result) Install(baseDir string, flags []string) (err error) {
aurQ, n, err := MultiInfo(aurDeps) aurQ, n, err := MultiInfo(aurDeps)
if n != len(aurDeps) { if n != len(aurDeps) {
fmt.Printf("Unable to find one package ") fmt.Printf("Unable to find a dependency on AUR")
} }
// Handle AUR dependencies first // Handle AUR dependencies first
@ -264,7 +264,9 @@ func (a *Result) Install(baseDir string, flags []string) (err error) {
} }
// Repo dependencies // Repo dependencies
pacman.PassToPacman("-S", repoDeps, []string{"--asdeps", "--needed"}) if len(repoDeps) != 0 {
pacman.PassToPacman("-S", repoDeps, []string{"--asdeps", "--needed"})
}
err = os.Chdir(dir.String()) err = os.Chdir(dir.String())
if err != nil { if err != nil {