From 9dfad070c9a35a77c922ebce2a9b5fef14353377 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Fri, 29 Nov 2013 14:04:08 -0800 Subject: [PATCH] fix(setup_board): Hide --getbinpkg, it isn't useful for setup_board. A new board build root always starts with an empty package cache so if binary packages are enabled downloading is required. The distinction can be useful for passing to update_chroot since its cache isn't impacted so the flag remains, just among the less used hidden ones. --- setup_board | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/setup_board b/setup_board index 2badc3fff5..10c4bdf60c 100755 --- a/setup_board +++ b/setup_board @@ -21,8 +21,6 @@ DEFINE_boolean force $FLAGS_FALSE \ "Force re-creating board root." DEFINE_boolean usepkg $FLAGS_TRUE \ "Use binary packages to bootstrap." -DEFINE_boolean getbinpkg $FLAGS_TRUE \ - "Download binary packages from remote repository." FLAGS_HELP="usage: $(basename $0) [flags] @@ -57,6 +55,8 @@ DEFINE_string variant "" \ "Board variant." DEFINE_boolean regen_configs ${FLAGS_FALSE} \ "Regenerate all config files (useful for modifying profiles w/out rebuild)." +DEFINE_boolean getbinpkg $FLAGS_TRUE \ + "Passed to update_chroot, ignored by setup_board itself." # builds wrappers like equery-arm-generic. @@ -269,10 +269,7 @@ if [[ ${FLAGS_regen_configs} -eq ${FLAGS_FALSE} ]]; then # avoid pulling any spurious DEPEND things in that we don't care about. KERNEL_EMERGE_FLAGS="--select --quiet --root-deps=rdeps" if [[ "${FLAGS_usepkg}" -eq "${FLAGS_TRUE}" ]]; then - KERNEL_EMERGE_FLAGS+=" --usepkg" - if [[ "${FLAGS_getbinpkg}" -eq "${FLAGS_TRUE}" ]]; then - KERNEL_EMERGE_FLAGS+=" --getbinpkg " - fi + KERNEL_EMERGE_FLAGS+=" --usepkg --getbinpkg" fi sudo -E "${EMERGE_WRAPPER}" ${KERNEL_EMERGE_FLAGS} \