From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1FBDD138335 for ; Thu, 21 Mar 2019 23:51:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C78CBE0875; Thu, 21 Mar 2019 23:51:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9D5D9E0875 for ; Thu, 21 Mar 2019 23:51:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 77759335D20 for ; Thu, 21 Mar 2019 23:51:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ABCDB577 for ; Thu, 21 Mar 2019 23:51:17 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1553201910.d407fd36b2ebbc10801f30e5caea99fc68717338.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_compile.sh X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: d407fd36b2ebbc10801f30e5caea99fc68717338 X-VCS-Branch: master Date: Thu, 21 Mar 2019 23:51:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 49ad0598-082c-436c-9e6c-cfc563093c74 X-Archives-Hash: 2a35335ecadee929d6b3f9574f7d6ca6 commit: d407fd36b2ebbc10801f30e5caea99fc68717338 Author: Thomas Deutschmann gentoo org> AuthorDate: Thu Mar 21 20:58:30 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Thu Mar 21 20:58:30 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=d407fd36 Show output of patch command only in loglevel >=2 Signed-off-by: Thomas Deutschmann gentoo.org> gen_compile.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gen_compile.sh b/gen_compile.sh index 7c38859..6e0d107 100755 --- a/gen_compile.sh +++ b/gen_compile.sh @@ -212,6 +212,11 @@ apply_patches() { if [ -d "${patchdir}" ] then + local silent="-s " + if [[ "${LOGLEVEL}" -gt 1 ]]; then + silent= + fi + print_info 1 "$(getIndent 3)${util}: >> Applying patches..." for i in ${patchdir}/*{diff,patch} do @@ -220,7 +225,7 @@ apply_patches() { for j in `seq 0 5` do patch -p${j} --backup-if-mismatch -f < "${i}" --dry-run >/dev/null && \ - patch -p${j} --backup-if-mismatch -f < "${i}" + patch ${silent}-p${j} --backup-if-mismatch -f < "${i}" if [ $? = 0 ] then patch_success=1