Skip to content

Commit

Permalink
Don't check check_depends during batch install if --nocheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Morganamilo committed Apr 11, 2022
1 parent a90ced5 commit 386633d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1401,11 +1401,16 @@ fn build_install_pkgbuild<'a>(
.pkgs
.iter()
.flat_map(|pkg| {
let check = if config.no_check {
None
} else {
Some(&pkg.pkg.check_depends)
};
pkg.pkg
.depends
.iter()
.chain(&pkg.pkg.make_depends)
.chain(&pkg.pkg.check_depends)
.chain(check.into_iter().flatten())
})
.all(|dep| db.find_satisfier(dep.as_str()).is_some())
{
Expand Down

0 comments on commit 386633d

Please sign in to comment.