2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-20 02:32:13 +00:00

Fix get_invocation_command_nodefault().

It was possible for command to be None. Thus, calling ' '.join(None) directly
would error out.
This commit is contained in:
Aaron Boman
2016-10-08 17:09:33 -05:00
parent 8f0b57e54e
commit d5a07dcdb3

View File

@@ -314,9 +314,8 @@ def get_invocation_command_nodefault(
#FIXME
#ECHO "warning: initialized from" [ errors.nearest-user-location ]
command = []
command = ' '.join(command)
assert(isinstance(command, str))
if command:
command = ' '.join(command)
return command