c4d1b3723e
Mozilla Firefox is a free, open-source and cross-platform web browser for Windows, Linux, MacOS X and many other operating systems. It is fast and easy to use, and offers many advantages over other web browsers, such as tabbed browsing and the ability to block pop-up windows. Firefox also offers excellent bookmark and history management, and it can be extended by developers using industry standards such as XML, CSS, JavaScript, C++, etc. Many extensions are available.
21 lines
938 B
Text
21 lines
938 B
Text
$NetBSD: patch-build_moz.configure_keyfiles.configure,v 1.1 2017/04/27 01:55:57 ryoon Exp $
|
|
|
|
--- build/moz.configure/keyfiles.configure.orig 2017-01-26 04:20:09.000000000 +0000
|
|
+++ build/moz.configure/keyfiles.configure
|
|
@@ -18,6 +18,7 @@ def keyfile(desc, help=None, callback=la
|
|
@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=la
|
|
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
|
|
|