Bug 1600454 - Fix build with --disable-update-channel. r=glandium
authorEmilio Cobos Álvarez <emilio@crisal.io>
Wed, 04 Dec 2019 08:48:17 +0000
changeset 505298 eff36ae1a58ba617617b6bbb0593126c5bedb98a
parent 505297 f5d3a765322802e3259faff377a5d5ccd88cc309
child 505299 e4a0fb55b56ba6c41e4526d222c977fec3f70da6
push id36881
push userdvarga@mozilla.com
push dateWed, 04 Dec 2019 16:22:31 +0000
treeherdermozilla-central@13fb375eaf14 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1600454
milestone73.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 1600454 - Fix build with --disable-update-channel. r=glandium Depends on D55363 Differential Revision: https://phabricator.services.mozilla.com/D55364
build/moz.configure/init.configure
--- a/build/moz.configure/init.configure
+++ b/build/moz.configure/init.configure
@@ -1242,17 +1242,17 @@ def fennec_nightly(is_nightly):
 option('--enable-update-channel',
        nargs=1,
        help='Select application update channel',
        default='default')
 
 
 @depends('--enable-update-channel')
 def update_channel(channel):
-    if channel[0] == '':
+    if not channel or channel[0] == '':
         return 'default'
     return channel[0].lower()
 
 
 set_config('MOZ_UPDATE_CHANNEL', update_channel)
 set_define('MOZ_UPDATE_CHANNEL', update_channel)
 add_old_configure_assignment('MOZ_UPDATE_CHANNEL', update_channel)