summaryrefslogtreecommitdiff
path: root/www/firefox-esr/files/patch-env-api-keys
diff options
context:
space:
mode:
Diffstat (limited to 'www/firefox-esr/files/patch-env-api-keys')
-rw-r--r--www/firefox-esr/files/patch-env-api-keys21
1 files changed, 0 insertions, 21 deletions
diff --git a/www/firefox-esr/files/patch-env-api-keys b/www/firefox-esr/files/patch-env-api-keys
deleted file mode 100644
index e20b012f27cf..000000000000
--- a/www/firefox-esr/files/patch-env-api-keys
+++ /dev/null
@@ -1,21 +0,0 @@
-# Accept API keys from environment like before bug 1294585
-
---- build/moz.configure/keyfiles.configure
-+++ build/moz.configure/keyfiles.configure
-@@ -18,6 +18,7 @@ def keyfile(desc, help=None, callback=lambda x: x):
- @checking('for the %s key' % desc, lambda x: x and x is not no_key)
- @imports(_from='__builtin__', _import='open')
- @imports(_from='__builtin__', _import='IOError')
-+ @imports(_from='os', _import='environ')
- def keyfile(value):
- if value:
- try:
-@@ -28,7 +29,7 @@ def keyfile(desc, help=None, callback=lambda x: x):
- raise FatalCheckError("'%s' is empty." % value[0])
- except IOError as e:
- raise FatalCheckError("'%s': %s." % (value[0], e.strerror))
-- return no_key
-+ return environ.get('MOZ_%s_KEY' % desc.upper().replace(' ', '_')) or no_key
-
- return keyfile
-