Bug 1039806 - UnboundLocalError: local variable 'output'; r=mshal
authorGregory Szorc <gps@mozilla.com>
Wed, 16 Jul 2014 16:02:31 -0700
changeset 196292 1b21108d2a5db118aa15d28d07144381b2a5d001
parent 196291 3a53a1cc3dbffee8a361d47c50efb8957ac2f4e8
child 196293 894afa1b44ae1d3b72279d835ec0e7ebabeda17b
push id27209
push usercbook@mozilla.com
push dateMon, 28 Jul 2014 13:49:10 +0000
treeherdermozilla-central@d77f6a96ff96 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmshal
bugs1039806
milestone34.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 1039806 - UnboundLocalError: local variable 'output'; r=mshal DONTBUILD (NPOTB)
python/mozboot/mozboot/osx.py
--- a/python/mozboot/mozboot/osx.py
+++ b/python/mozboot/mozboot/osx.py
@@ -200,16 +200,18 @@ class OSXBootstrapper(BaseBootstrapper):
             except subprocess.CalledProcessError as e:
                 # This seems to appear on fresh OS X machines before any Xcode
                 # has been installed. It may only occur on OS X 10.9 and later.
                 if 'unable to get active developer directory' in e.output:
                     print(XCODE_NO_DEVELOPER_DIRECTORY)
                     self._install_xcode_app_store()
                     assert False # Above should exit.
 
+                output = e.output
+
             # This isn't the most robust check in the world. It relies on the
             # default value not being in an application bundle, which seems to
             # hold on at least Mavericks.
             if '.app/' not in output:
                 print(XCODE_REQUIRED)
                 self._install_xcode_app_store()
                 assert False # Above should exit.