Bug 1494287 - followup: Fix undefined variable in fallback path. r=me
authorTooru Fujisawa <arai_a@mac.com>
Fri, 12 Oct 2018 08:24:04 +0900
changeset 496562 965a5b3b29a0b3a2c0c89b0863992d9befbad616
parent 496561 9de896fd363f935bba655ee6f8ef213bfbcd11cb
child 496563 f536c1abf26e5dfd2e6173e6f05eaa570a40fea8
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1494287
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1494287 - followup: Fix undefined variable in fallback path. r=me
python/mozboot/mozboot/base.py
--- a/python/mozboot/mozboot/base.py
+++ b/python/mozboot/mozboot/base.py
@@ -266,16 +266,17 @@ class BaseBootstrapper(object):
         Install any necessary packages needed to supply NodeJS'''
         raise NotImplementedError(
             '%s does not yet implement ensure_node_packages()'
             % __name__)
 
     def ensure_rust_package(self, crate_name, min_version):
         cargo = self.which('cargo')
         if not cargo:
+            cargo_home, cargo_bin = self.cargo_home()
             cargo = os.path.join(cargo_bin, 'cargo')
 
         list = subprocess.check_output([cargo, 'install', '--list'])
         target = crate_name + ' v'
         for line in list.splitlines():
             if line.startswith(target):
                 version = line[len(target):-1]
                 if LooseVersion(version) >= LooseVersion(min_version):