Commit 66ad3cab authored by Andreas Jung's avatar Andreas Jung
parent b6b1e0f5
......@@ -4,12 +4,14 @@ Status
Change History
**************
1.0.2 (unreleased)
1.0.2 (2008-05-13)
==================
- More fixes for Windows. A quoted sha-bang is now used on Windows to make the
.exe files work with a Python executable in 'program files'.
- added "-t <timeout_in_seconde>" option for specifying the socket timeout
1.0.1 (2008-04-02)
==================
......
......@@ -1220,6 +1220,10 @@ Options:
This defaults to the file named "buildout.cfg" in the current
working directory.
-t socket_timeout
Specify the socket timeout in seconds.
-U
Don't read user defaults.
......@@ -1341,8 +1345,11 @@ def main(args=None):
_help()
op = op[1:]
if op[:1] == 'c':
if op[:1] in ('c', 't'):
op_ = op[:1]
op = op[1:]
if op_ == 'c':
if op:
config_file = op
else:
......@@ -1350,6 +1357,18 @@ def main(args=None):
config_file = args.pop(0)
else:
_error("No file name specified for option", orig_op)
elif op_ == 't':
try:
timeout = int(args.pop(0))
except IndexError:
_error("No timeout value specified for option", orig_op)
except ValueError:
_error("No timeout value must be numeric", orig_op)
import socket
print 'Setting socket time out to %d seconds' % timeout
socket.setdefaulttimeout(timeout)
elif op:
if orig_op == '--help':
_help()
......
......@@ -1453,6 +1453,11 @@ The following options are supported:
The -c option can be used to specify a configuration file, rather than
buildout.cfg in the current directory.
-t socket_timeout
Specify the socket timeout in seconds.
-v
Increment the verbosity by 10. The verbosity is used to adjust
the logging level. The verbosity is subtracted from the numeric
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment