From owner-svn-src-head@FreeBSD.ORG Fri Jul 5 06:20:02 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 46F7AD03; Fri, 5 Jul 2013 06:20:02 +0000 (UTC) (envelope-from dteske@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 203531291; Fri, 5 Jul 2013 06:20:02 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r656K2JD012809; Fri, 5 Jul 2013 06:20:02 GMT (envelope-from dteske@svn.freebsd.org) Received: (from dteske@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r656K2Ic012808; Fri, 5 Jul 2013 06:20:02 GMT (envelope-from dteske@svn.freebsd.org) Message-Id: <201307050620.r656K2Ic012808@svn.freebsd.org> From: Devin Teske Date: Fri, 5 Jul 2013 06:20:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r252771 - head/usr.sbin/bsdconfig/share/packages X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jul 2013 06:20:02 -0000 Author: dteske Date: Fri Jul 5 06:20:01 2013 New Revision: 252771 URL: http://svnweb.freebsd.org/changeset/base/252771 Log: Minor debugging changes/additions. 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 Fri Jul 5 05:47:10 2013 (r252770) +++ head/usr.sbin/bsdconfig/share/packages/packages.subr Fri Jul 5 06:20:01 2013 (r252771) @@ -135,6 +135,7 @@ f_package_select() [ "$package" = "$pkgsel" ] && return done SELECTED_PACKAGES="$SELECTED_PACKAGES $package" + f_dprintf "Added %s to selection list" "$package" done SELECTED_PACKAGES="${SELECTED_PACKAGES# }" # Trim leading space } @@ -157,6 +158,7 @@ f_package_deselect() new_list="$new_list${new_list:+ }$pkgsel" done SELECTED_PACKAGES="$new_list" + f_dprintf "Removed %s from selection list" "$package" done } @@ -584,8 +586,8 @@ f_package_review() local menu_list # Calculated below local hline="$hline_alnum_arrows_punc_tab_enter" - f_dprintf "f_package_review: SELECTED_PACKAGES=[%s]" \ - "$SELECTED_PACKAGES" + local fname=f_package_review + f_dprintf "%s: SELECTED_PACKAGES=[%s]" $fname "$SELECTED_PACKAGES" prompt=$( printf "$msg_reviewing_selected_packages" "$_All_nselected" ) @@ -635,24 +637,27 @@ f_package_review() for package in $SELECTED_PACKAGES; do mark= f_str2varname "$package" varpkg - f_getvar _mark_$varpkg mark + debug= f_getvar _mark_$varpkg mark [ "$mark" = "I" ] || continue + f_dprintf "%s: Installing %s package" $fname "$package" f_package_add "$package" || continue f_package_deselect "$package" done for package in $SELECTED_PACKAGES; do mark= f_str2varname "$package" varpkg - f_getvar _mark_$varpkg mark + debug= f_getvar _mark_$varpkg mark [ "$mark" = "R" ] || continue + f_dprintf "%s: Reinstalling %s package" $fname "$package" # XXX Re-install package f_package_deselect "$package" done for package in $SELECTED_PACKAGES; do mark= f_str2varname "$package" varpkg - f_getvar _mark_$varpkg mark + debug= f_getvar _mark_$varpkg mark [ "$mark" = "U" ] || continue + f_dprintf "%s: Uninstalling %s package" $fname "$package" # XXX Uninstall package f_package_deselect "$package" done @@ -951,6 +956,10 @@ f_package_extract() { local device="$1" name="$2" depended="$3" + local fname=f_package_extract + f_dprintf "%s: device=[%s] name=[%s] depended=[%s]" \ + $fname "$device" "$name" "$depended" + # Check to make sure it's not already there local varpkg mark= f_str2varname "$name" varpkg @@ -983,8 +992,6 @@ f_package_extract() esac esac - local fname=f_package_extract - # We have a path, call the device strategy routine to get the file local pkg_ext probe_only=1 found= for pkg_ext in "" $PACKAGE_EXTENSIONS; do