Date: Tue, 4 Jun 2013 00:38:19 +0000 (UTC) From: Devin Teske <dteske@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r251355 - head/usr.sbin/bsdconfig/share/packages Message-ID: <201306040038.r540cJZ9047400@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dteske Date: Tue Jun 4 00:38:19 2013 New Revision: 251355 URL: http://svnweb.freebsd.org/changeset/base/251355 Log: Fix menu accenting for the package category list. The single-space indent for duplicate initial-characters was removed for making comparisons but was not put back. Modified: head/usr.sbin/bsdconfig/share/packages/packages.subr Modified: head/usr.sbin/bsdconfig/share/packages/packages.subr ============================================================================== --- head/usr.sbin/bsdconfig/share/packages/packages.subr Tue Jun 4 00:35:57 2013 (r251354) +++ head/usr.sbin/bsdconfig/share/packages/packages.subr Tue Jun 4 00:38:19 2013 (r251355) @@ -73,13 +73,13 @@ SELECTED_PACKAGES= # f_package_accent_category_menu() { - local var_to_set="$1" cat desc help varcat menu_buf n + local var_to_set="$1" category cat desc help varcat menu_buf n shift 1 # var_to_set while [ $# -gt 0 ]; do - cat="${1%\*}" desc="${2%%; *}" help="$3" + category="${1%\*}" desc="${2%%; *}" help="$3" shift 3 # cat/desc/help - cat="${cat# }" # Trim leading space inserted by sort-method + cat="${category# }" # Trim lead space inserted by sort-method f_str2varname "$cat" varcat # Add number of installed packages for this category (if any) @@ -99,11 +99,11 @@ f_package_accent_category_menu() [ $n -ge 1 ] && desc="$desc; $n $msg_selected" # Re-Add asterisk to the category if its index has been cached - f_isset _index_page_${varcat}_1 && cat="$cat*" + f_isset _index_page_${varcat}_1 && category="$category*" # Update buffer with modified elements menu_buf="$menu_buf - '$cat' '$desc' '$help'" # End-Quote + '$category' '$desc' '$help'" # End-Quote done setvar "$var_to_set" "$menu_buf" # return our buffer }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306040038.r540cJZ9047400>