Portmaster and update progress, suggestion.

Doug Barton dougb at FreeBSD.org
Wed Jun 6 22:41:29 UTC 2012


On 06/06/2012 15:06, Doug Barton wrote:
> 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. 

Actually try this one instead. :)


-- 

    This .signature sanitized for your protection
-------------- next part --------------
Index: portmaster
===================================================================
--- portmaster	(revision 236697)
+++ portmaster	(working copy)
@@ -2208,6 +2208,8 @@
 }
 
 term_printf () {
+	case "$1" in *\>\>*) echo -e "\n\t${PM_PARENT_PORT}${1}" ;; esac
+
 	[ -n "$PM_NO_TERM_TITLE" ] && return
 	case "$TERM" in cons*) return ;; esac
 
@@ -2283,7 +2285,6 @@
 	deps=" (${dep_of_deps}/${num_of_deps})"
 
 	if [ -n "$PM_DEPTH" ]; then
-		echo "	${PM_DEPTH}>> ${1#$pd/}"
 		term_printf " ${PM_DEPTH#* }>> ${1#$pd/}${deps}"
 	else
 		[ -n "$UPDATE_ALL" ] && term_printf " >> ${1#$pd/}${deps}"
@@ -2527,19 +2528,16 @@
 		safe_exit
 	elif [ -n "$PM_FIRST_PASS" -a -z "$PM_PACKAGES" ]; then
 		echo "===>>> Initial dependency check complete for $portdir"
-		case "$PM_DEPTH" in *\>\>*) echo "	$PM_DEPTH" ;; esac
 	else
 		echo "===>>> Dependency check complete for $portdir"
-		case "$PM_DEPTH" in
-		*\>\>*)	echo "	$PM_DEPTH" ;;
-		*)	if [ "$PM_PARENT_PORT" = All ]; then
-				local deps
-				deps=" (${dep_of_deps}/${num_of_deps})"
-				term_printf " >> ${upg_port:-$portdir}${deps}"
-			else
-				term_printf
-			fi ;;
-		esac
+
+		if [ "$PM_PARENT_PORT" = All ]; then
+			local deps
+			deps=" (${dep_of_deps}/${num_of_deps})"
+			term_printf " >> ${upg_port:-$portdir}${deps}"
+		else
+			term_printf
+		fi
 	fi
 } # dependency_check()
 


More information about the freebsd-questions mailing list