Portmaster and update progress, suggestion.
Doug Barton
dougb at FreeBSD.org
Wed Jun 6 22:07:47 UTC 2012
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
-------------- next part --------------
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"
More information about the freebsd-questions
mailing list