Changeset View
Changeset View
Standalone View
Standalone View
mail/thunderbird/files/patch-env-api-keys
# Accept API keys from environment like before bug 1294585 | # Accept API keys from environment like before bug 1294585 | ||||
--- mozilla/build/moz.configure/keyfiles.configure | --- build/moz.configure/keyfiles.configure | ||||
+++ mozilla/build/moz.configure/keyfiles.configure | +++ build/moz.configure/keyfiles.configure | ||||
@@ -18,6 +18,7 @@ def keyfile(desc, help=None, callback=lambda x: x): | @@ -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) | @checking('for the %s key' % desc, lambda x: x and x is not no_key) | ||||
@imports(_from='__builtin__', _import='open') | @imports(_from='__builtin__', _import='open') | ||||
@imports(_from='__builtin__', _import='IOError') | @imports(_from='__builtin__', _import='IOError') | ||||
+ @imports(_from='os', _import='environ') | + @imports(_from='os', _import='environ') | ||||
def keyfile(value): | def keyfile(value): | ||||
if value: | if value: | ||||
try: | try: | ||||
Show All 9 Lines |