Commit 42b57663 authored by Nirbheek Chauhan's avatar Nirbheek Chauhan 🐜
Browse files

bootstrap: --system-only used to also install toolchains

So we should keep doing that. Also document what each command is
supposed to do, and make the deprecation message clearer about what
people should do to get rid of it.

Part-of: <!612>
parent 49ab8974
......@@ -57,13 +57,14 @@ class Bootstrap(Command):
def run(self, config, args):
if args.build_tools_only:
# --build-tools-only meant '--system=no --toolchains=no --build-tools=yes'
args.toolchains = False
args.system = False
m.deprecation('--build-tools-only has been replaced by --system/toolchains/build-tools')
m.deprecation('Replace --build-tools-only with --system=no --toolchains=no')
if args.system_only:
# --system-only meant '--system=yes --toolchains=yes --build-tools=no'
args.build_tools = False
args.toolchains = False
m.deprecation('--system-only has been replaced by --system/toolchains/build-tools')
m.deprecation('Replace --system-only with --build-tools=no')
bootstrappers = Bootstrapper(config, args.system, args.toolchains,
args.build_tools, args.offline, args.assume_yes)
tasks = []
......@@ -98,9 +99,9 @@ class FetchBootstrap(Command):
def run(self, config, args):
if args.build_tools_only:
# --build-tools-only meant '--toolchains=no --build-tools=yes'
args.toolchains = False
args.system = False
m.deprecation('--build-tools-only has been replaced by --system/toolchains/build-tools')
m.deprecation('Replace --build-tools-only with --toolchains=no')
bootstrappers = Bootstrapper(config, False, args.toolchains,
args.build_tools, offline=False, assume_yes=False)
tasks = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment