mirror of
https://github.com/Jguer/yay
synced 2024-08-31 21:58:39 +00:00
ignore dependency checks on double --nodeps
This commit is contained in:
parent
0c8ce4f033
commit
71929cb225
17
install.go
17
install.go
|
@ -162,9 +162,11 @@ func install(parser *settings.Arguments, alpmHandle *alpm.Handle) (err error) {
|
|||
return err
|
||||
}
|
||||
|
||||
err = dp.CheckMissing()
|
||||
if err != nil {
|
||||
return err
|
||||
if !parser.existsDouble("d", "nodeps") {
|
||||
err = dp.CheckMissing()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if len(dp.Aur) == 0 {
|
||||
|
@ -191,9 +193,12 @@ func install(parser *settings.Arguments, alpmHandle *alpm.Handle) (err error) {
|
|||
return fmt.Errorf(gotext.Get("refusing to install AUR packages as root, aborting"))
|
||||
}
|
||||
|
||||
conflicts, err := dp.CheckConflicts()
|
||||
if err != nil {
|
||||
return err
|
||||
var conflicts stringset.MapStringSet
|
||||
if !parser.existsDouble("d", "nodeps") {
|
||||
conflicts, err = dp.CheckConflicts()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
do = getDepOrder(dp)
|
||||
|
|
Loading…
Reference in a new issue