From 560d04ceff5445d0281b6dc342c262bda71d2952 Mon Sep 17 00:00:00 2001 From: Sergey Matveychuk Date: Wed, 9 Aug 2006 17:17:22 +0000 Subject: - Make fetch(1) quiet when STDOUT is not a tty (as it was before). PR: ports/101341 Requested by: Tsurutani Naoki --- sysutils/portupgrade/Makefile | 2 +- sysutils/portupgrade/files/patch-bin-portupgrade | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) (limited to 'sysutils/portupgrade') diff --git a/sysutils/portupgrade/Makefile b/sysutils/portupgrade/Makefile index 96510b5bb9c4..4e833e679c66 100644 --- a/sysutils/portupgrade/Makefile +++ b/sysutils/portupgrade/Makefile @@ -7,7 +7,7 @@ PORTNAME= portupgrade PORTVERSION= 2.1.3.2 -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 2 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ diff --git a/sysutils/portupgrade/files/patch-bin-portupgrade b/sysutils/portupgrade/files/patch-bin-portupgrade index 3a82699cafee..f714446db4c2 100644 --- a/sysutils/portupgrade/files/patch-bin-portupgrade +++ b/sysutils/portupgrade/files/patch-bin-portupgrade @@ -1,5 +1,5 @@ ---- bin/portupgrade.orig Wed Jul 12 20:09:27 2006 -+++ bin/portupgrade Wed Jul 12 20:09:59 2006 +--- bin/portupgrade.orig Sat Jul 1 10:40:10 2006 ++++ bin/portupgrade Wed Aug 9 21:06:53 2006 @@ -900,8 +900,7 @@ def get_make_env(origin, is_new = false) $make_env_table ||= compile_config_table(config_value(:MAKE_ENV)) @@ -10,3 +10,14 @@ make_env = $make_env.dup if make_env.empty? +@@ -1471,6 +1470,10 @@ + + Dir.chdir(portdir) { + $fetch_cmd = `make -V FETCH_CMD`.chomp ++ ++ if ! STDOUT.tty? ++ cmdargs << "FETCH_BEFORE_ARGS=-q" ++ end + + if $fetch_only + cmdargs << '-DBATCH' << '-DPACKAGE_BUILDING' -- cgit v1.2.3