From 386633d2c58b270ec3db97d0ec6877eaa562ff00 Mon Sep 17 00:00:00 2001 From: morganamilo Date: Mon, 11 Apr 2022 18:04:59 +0100 Subject: [PATCH] Don't check check_depends during batch install if --nocheck --- src/install.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/install.rs b/src/install.rs index adcd1184..bbb13086 100644 --- a/src/install.rs +++ b/src/install.rs @@ -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()) {