svn commit: r214541 - user/dougb/portmaster

Doug Barton dougb at FreeBSD.org
Sat Oct 30 00:00:54 UTC 2010


Author: dougb
Date: Sat Oct 30 00:00:54 2010
New Revision: 214541
URL: http://svn.freebsd.org/changeset/base/214541

Log:
  In the parent, use the $PM_NEEDS_UPDATE list to suggest a shortcut to
  resume a failed build
  
  In a child process, if we've failed there is no point in updating
  $IPC_SAVE, so just die instead.

Modified:
  user/dougb/portmaster/portmaster

Modified: user/dougb/portmaster/portmaster
==============================================================================
--- user/dougb/portmaster/portmaster	Fri Oct 29 23:24:44 2010	(r214540)
+++ user/dougb/portmaster/portmaster	Sat Oct 30 00:00:54 2010	(r214541)
@@ -210,6 +210,13 @@ parent_exit () {
 		done
 		echo ''
 	fi
+
+	if [ -n "$1" ]; then
+		echo ''
+		echo "===>>> You can restart from the point of failure with this command line:"
+		echo "       ${0##*/} <flags> $PM_NEEDS_UPDATE"
+		echo ''
+	fi
 }
 
 safe_exit () {
@@ -218,6 +225,8 @@ safe_exit () {
 	else
 		[ -n "$grep_deps" ] && pm_unlink $grep_deps
 
+		[ -n "$1" ] && exit $1
+
 		# Save state for the parent process to read back in
 		if [ -z "$PM_FIRST_PASS" ]; then
 			> $IPC_SAVE


More information about the svn-src-user mailing list