Author: dteske Date: Fri Jul 5 01:21:01 2013 New Revision: 252738 URL: http://svnweb.freebsd.org/changeset/base/252738
Log: Allow global default as general fall-back for package management routines. Modified: head/usr.sbin/bsdconfig/share/packages/index.subr Modified: head/usr.sbin/bsdconfig/share/packages/index.subr ============================================================================== --- head/usr.sbin/bsdconfig/share/packages/index.subr Fri Jul 5 01:18:54 2013 (r252737) +++ head/usr.sbin/bsdconfig/share/packages/index.subr Fri Jul 5 01:21:01 2013 (r252738) @@ -207,7 +207,8 @@ f_index_read() # f_index_extract_pages $var_to_get $var_basename $pagesize [$category] # -# Extracts the package INDEX into a series of sequential variables +# Extracts the package INDEX ($PACKAGE_INDEX by default if/when $var_to_get is +# NULL; but should not be missing) into a series of sequential variables # corresponding to "pages" containing up to $pagesize packages. The package # INDEX data must be contained in the variable $var_to_get. The extracted pages # are stored in variables ${var_basename}_# -- where "#" is a the page number. @@ -217,7 +218,7 @@ f_index_read() # f_index_extract_pages() { - local var_to_get="$1" var_basename="$2" pagesize="$3" + local var_to_get="${1:-PACKAGE_INDEX}" var_basename="$2" pagesize="$3" local category="$4" # Optional eval "$( _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"