mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
AUR dependency install logic. Commit does not compile
This commit is contained in:
parent
f6440ee5c1
commit
c7fd16e367
1 changed files with 15 additions and 2 deletions
17
aur.go
17
aur.go
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue