mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
Fixes #8. Now we'll only skip user interraction against deps on --noconfirm.
This commit is contained in:
parent
27759a589f
commit
6d06f1687d
1 changed files with 9 additions and 3 deletions
|
@ -141,17 +141,23 @@ func (a *Result) Install(flags []string) (finalmdeps []string, err error) {
|
|||
}
|
||||
}
|
||||
|
||||
var depArgs []string
|
||||
if util.NoConfirm == true {
|
||||
depArgs = []string{"--asdeps", "--noconfirm"}
|
||||
} else {
|
||||
depArgs = []string{"--asdeps"}
|
||||
}
|
||||
// Repo dependencies
|
||||
if len(repoDeps) != 0 {
|
||||
errR := pacman.Install(repoDeps, []string{"--asdeps", "--noconfirm"})
|
||||
errR := pacman.Install(repoDeps, depArgs)
|
||||
if errR != nil {
|
||||
return finalmdeps, errR
|
||||
}
|
||||
}
|
||||
|
||||
// Handle AUR dependencies first
|
||||
// Handle AUR dependencies
|
||||
for _, dep := range aurQ {
|
||||
finalmdepsR, errA := dep.Install([]string{"--asdeps", "--noconfirm"})
|
||||
finalmdepsR, errA := dep.Install(depArgs)
|
||||
finalmdeps = append(finalmdeps, finalmdepsR...)
|
||||
|
||||
if errA != nil {
|
||||
|
|
Loading…
Reference in a new issue