Date: Fri, 18 Dec 2009 08:35:34 +0000 (UTC) From: Doug Barton <dougb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r200664 - user/dougb/portmaster Message-ID: <200912180835.nBI8ZYHR080901@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dougb Date: Fri Dec 18 08:35:34 2009 New Revision: 200664 URL: http://svn.freebsd.org/changeset/base/200664 Log: Collect common post-config code related to build-only options into post_config() Modified: user/dougb/portmaster/portmaster Modified: user/dougb/portmaster/portmaster ============================================================================== --- user/dougb/portmaster/portmaster Fri Dec 18 08:03:31 2009 (r200663) +++ user/dougb/portmaster/portmaster Fri Dec 18 08:35:34 2009 (r200664) @@ -1868,8 +1868,6 @@ create_master_rb_list () { post_config () { local action - unset CONFIG_SEEN_LIST CONFIG_ONLY - action=build if [ "$PM_PACKAGES" = only ]; then action=install @@ -1880,6 +1878,13 @@ post_config () { echo '' echo "===>>> Starting $action for $* <<<===" echo '' + + unset CONFIG_SEEN_LIST CONFIG_ONLY + + if [ -n "$PM_BUILD_ONLY_LIST" ]; then + unset run_dl_g + PM_BUILD_ONLY_LIST=pm_bol + fi } multiport () { @@ -1947,11 +1952,6 @@ multiport () { check_fetch_only post_config multiple ports - - if [ -n "$PM_BUILD_ONLY_LIST" ]; then - unset run_dl_g - PM_BUILD_ONLY_LIST=pm_bol - fi fi export PM_BUILDING=pmbuildingmultiport @@ -2116,11 +2116,7 @@ all_config () { post_config for ports that need updating - if [ -n "$PM_BUILD_ONLY_LIST" ]; then - clean_build_only_list - unset run_dl_g - PM_BUILD_ONLY_LIST=pm_bol - fi + [ -n "$PM_BUILD_ONLY_LIST" ] && clean_build_only_list fi export PM_BUILDING=pmbuildingall @@ -2420,11 +2416,6 @@ if [ -n "$CONFIG_ONLY" ]; then check_fetch_only post_config $portdir - - if [ -n "$PM_BUILD_ONLY_LIST" ]; then - unset run_dl_g - PM_BUILD_ONLY_LIST=pm_bol - fi fi [ -z "$PM_BUILDING" ] && export PM_BUILDING=pmbuildingmain
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912180835.nBI8ZYHR080901>