From owner-freebsd-questions@FreeBSD.ORG Wed Jun 6 22:07:47 2012 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id B573C1065670 for ; Wed, 6 Jun 2012 22:07:47 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from opti.dougb.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id CAC6A14DE53; Wed, 6 Jun 2012 22:06:35 +0000 (UTC) Message-ID: <4FCFD46B.2070306@FreeBSD.org> Date: Wed, 06 Jun 2012 15:06:35 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120506 Thunderbird/12.0.1 MIME-Version: 1.0 To: Leslie Jensen References: <4FCA2CAE.6020809@eskk.nu> <4FCA4ACB.9040309@FreeBSD.org> <4FCAFCE0.4070807@eskk.nu> <4FCC6557.40403@eskk.nu> <4FCC66A0.4030405@FreeBSD.org> <4FCC6E7D.50004@eskk.nu> <4FCCC1DA.4020202@eskk.nu> <4FCF8141.2040402@eskk.nu> In-Reply-To: <4FCF8141.2040402@eskk.nu> X-Enigmail-Version: 1.5pre OpenPGP: id=1A1ABC84 Content-Type: multipart/mixed; boundary="------------090803090402060507010903" Cc: freebsd-questions@FreeBSD.org Subject: Re: Portmaster and update progress, suggestion. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2012 22:07:47 -0000 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--