aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-03-21 21:58:30 +0100
committerThomas Deutschmann <whissi@gentoo.org>2019-03-21 21:58:30 +0100
commitd407fd36b2ebbc10801f30e5caea99fc68717338 (patch)
treea5a77b7c39bb629af12e9695e604363efbe0807c
parentFix compilation of dmraid (diff)
downloadgenkernel-d407fd36.tar.gz
genkernel-d407fd36.tar.bz2
genkernel-d407fd36.zip
Show output of patch command only in loglevel >=2
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rwxr-xr-xgen_compile.sh7
1 files changed, 6 insertions, 1 deletions
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