From c9c4a23db6761fc9a7893752582a3e7c3917a95e Mon Sep 17 00:00:00 2001 From: morganamilo Date: Sat, 16 Nov 2024 02:42:09 +0000 Subject: [PATCH] Pass --nocheck to makechrootpkg Fixes #1054 --- src/config.rs | 3 +++ src/resolver.rs | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 79659b29..0ffd8ed5 100644 --- a/src/config.rs +++ b/src/config.rs @@ -829,6 +829,9 @@ then initialise it with: if !self.assume_installed.is_empty() && !self.chroot { self.mflags.push("-d".to_string()); } + if self.no_check { + self.mflags.push("--nocheck".to_string()); + } if self.chroot { remove_var("PKGEXT"); diff --git a/src/resolver.rs b/src/resolver.rs index 9f6c3e3e..5fbb5af9 100644 --- a/src/resolver.rs +++ b/src/resolver.rs @@ -27,7 +27,6 @@ pub fn flags(config: &mut Config) -> aur_depends::Flags { } if config.no_check { flags.remove(Flags::CHECK_DEPENDS); - config.mflags.push("--nocheck".into()); } if !config.mode.pkgbuild() { flags &= !Flags::PKGBUILDS;