Bug 1332722 - mozboot: Use msys path for cargo_bin. r=gps

We need to mangle the path for both parts of the text printed
but rust_path_advice on windows. Otherwise the report of where
the rust binary was found ends up a mixed pathname even when
the suggested shell command is correct.

MozReview-Commit-ID: FDtP5HY8tJ1

--HG--
extra : rebase_source : ad3671be04751ece8966fa19267239b9f1614551
This commit is contained in:
Ralph Giles 2017-01-20 11:55:05 -08:00
parent 1ffc29a50a
commit 0ef4e5a4a9

View File

@ -556,7 +556,8 @@ class BaseBootstrapper(object):
# so fall back to a manual PATH update. Bootstrap
# only runs under msys, so a unix-style shell command
# is appropriate there.
cmd = 'export PATH=%s:$PATH' % self.win_to_msys_path(cargo_bin)
cargo_bin = self.win_to_msys_path(cargo_bin)
cmd = 'export PATH=%s:$PATH' % cargo_bin
print(template % {
'cargo_bin': cargo_bin,
'cmd': cmd,