Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Jun 2012 15:06:35 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Leslie Jensen <leslie@eskk.nu>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: Portmaster and update progress, suggestion.
Message-ID:  <4FCFD46B.2070306@FreeBSD.org>
In-Reply-To: <4FCF8141.2040402@eskk.nu>
References:  <4FCA2CAE.6020809@eskk.nu> <4FCA4ACB.9040309@FreeBSD.org> <4FCAFCE0.4070807@eskk.nu> <alpine.BSF.2.00.1206030745080.91341@wonkity.com> <alpine.BSF.2.00.1206031018000.92177@wonkity.com> <4FCC6557.40403@eskk.nu> <4FCC66A0.4030405@FreeBSD.org> <4FCC6E7D.50004@eskk.nu> <alpine.BSF.2.00.1206040752260.97869@wonkity.com> <4FCCC1DA.4020202@eskk.nu> <4FCF8141.2040402@eskk.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------090803090402060507010903
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

On 06/06/2012 09:11, Leslie Jensen wrote:
> My initial wish for some information about the build progress is still
> very much on the table.

Try the attached patch. It essentially adds the progress info that is
being put in the TERM title to the in-line printout of the dependency
trail that was already there.

Let me know what you think,

Doug

-- 

    This .signature sanitized for your protection

--------------090803090402060507010903
Content-Type: text/plain; charset=UTF-8;
 name="portmaster-progress.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="portmaster-progress.diff"

Index: portmaster
===================================================================
--- portmaster	(revision 236697)
+++ portmaster	(working copy)
@@ -2208,6 +2208,8 @@
 }
 
 term_printf () {
+	echo -e "\n\t${PM_PARENT_PORT}${1}"
+
 	[ -n "$PM_NO_TERM_TITLE" ] && return
 	case "$TERM" in cons*) return ;; esac
 
@@ -2283,7 +2285,7 @@
 	deps=" (${dep_of_deps}/${num_of_deps})"
 
 	if [ -n "$PM_DEPTH" ]; then
-		echo "	${PM_DEPTH}>> ${1#$pd/}"
+		#echo "	${PM_DEPTH}>> ${1#$pd/}"
 		term_printf " ${PM_DEPTH#* }>> ${1#$pd/}${deps}"
 	else
 		[ -n "$UPDATE_ALL" ] && term_printf " >> ${1#$pd/}${deps}"
@@ -2623,7 +2625,7 @@
 	[ -z "$dep_of_deps" ] && dep_of_deps=0
 	export PM_PARENT_PORT num_of_deps dep_of_deps
 
-	term_printf
+	#term_printf
 }
 
 if [ -n "$PM_URB" ]; then
@@ -2783,6 +2785,7 @@
 
 		numports=$(( $numports + 1 ))
 		init_term_printf "$port ${numports}/${numports}"
+		term_printf
 		($0 $ARGS $port) || update_failed=update_failed
 		. $IPC_SAVE
 		[ -n "$update_failed" ] && fail "Update for $port failed"
@@ -2825,6 +2828,7 @@
 
 		num=$(( $num + 1 ))
 		init_term_printf "$port ${num}/${numports}"
+		term_printf
 		($0 $ARGS $port) || update_failed=update_failed
 		. $IPC_SAVE
 		[ -n "$update_failed" ] && fail "Update for $port failed"
@@ -2978,6 +2982,7 @@
 	[ -n "$DI_FILES" ] && (read_distinfos)&
 
 	init_term_printf All
+	term_printf
 
 	ports_by_category
 	echo "===>>> Starting check of installed ports for available updates"

--------------090803090402060507010903--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FCFD46B.2070306>