AUR dependency install logic. Commit does not compile

This commit is contained in:
Jguer 2016-09-07 13:50:53 +01:00
parent f6440ee5c1
commit c7fd16e367

17
aur.go
View file

@ -195,12 +195,25 @@ func (a AurResult) getDepsFromRPC() (final []string, err error) {
return return
} }
func installAURPackage(pkgList string) (err error) { func installAURPackage(pkg string) (err error) {
info, err := infoAurPackage(pkg)
if err != nil {
return
}
return err return err
} }
func (a AurResult) getAURDependencies() (err error) { func (a AurResult) getAURDependencies() (err error) {
_, err = a.getDepsFromRPC() pkglist, err := a.getDepsFromRPC()
for _, i := range pkglist {
err = installAURPackage(i)
if err != nil {
// uninstall list TODO
return
}
}
return nil return nil
} }