svn commit: r207833 - user/dougb/portmaster

Doug Barton dougb at FreeBSD.org
Mon May 10 00:45:10 UTC 2010


Author: dougb
Date: Mon May 10 00:45:10 2010
New Revision: 207833
URL: http://svn.freebsd.org/changeset/base/207833

Log:
  Add error checking for --packages-local without --local-packagedir

Modified:
  user/dougb/portmaster/portmaster

Modified: user/dougb/portmaster/portmaster
==============================================================================
--- user/dougb/portmaster/portmaster	Sun May  9 22:16:15 2010	(r207832)
+++ user/dougb/portmaster/portmaster	Mon May 10 00:45:10 2010	(r207833)
@@ -486,6 +486,9 @@ unset var
 [ -n "$PM_INDEX" -a -n "$CHECK_PORT_DBDIR" ] &&
 	fail 'The --index* and --check-port-dbdir options are mutually exclusive'
 
+[ -n "$PM_PACKAGES_LOCAL" -a -z "$LOCAL_PACKAGEDIR" ] &&
+	fail 'The --packages-local option requires --local-packagedir to be defined'
+
 # Do this here so it can use the fancy functions above, and default values
 # can be overridden in the rc files
 if [ "$$" -eq "$PM_PARENT_PID" ]; then


More information about the svn-src-user mailing list