Merge branch '1.0-maint'

This commit is contained in:
Thomas Waldmann 2016-03-21 16:13:08 +01:00
commit de7582a9d7
4 changed files with 16 additions and 5 deletions

View File

@ -8,10 +8,14 @@
#include <fcntl.h>
#include <unistd.h>
#if defined(BYTE_ORDER)&&(BYTE_ORDER == BIG_ENDIAN)
#if defined (__SVR4) && defined (__sun)
#include <sys/isa_defs.h>
#endif
#if (defined(BYTE_ORDER)&&(BYTE_ORDER == BIG_ENDIAN)) || defined(_BIG_ENDIAN)
#define _le32toh(x) __builtin_bswap32(x)
#define _htole32(x) __builtin_bswap32(x)
#elif defined(BYTE_ORDER)&&(BYTE_ORDER == LITTLE_ENDIAN)
#elif (defined(BYTE_ORDER)&&(BYTE_ORDER == LITTLE_ENDIAN)) || defined(_LITTLE_ENDIAN)
#define _le32toh(x) (x)
#define _htole32(x) (x)
#else

View File

@ -322,6 +322,12 @@ class Archiver:
elif stat.S_ISSOCK(st.st_mode):
# Ignore unix sockets
return
elif stat.S_ISDOOR(st.st_mode):
# Ignore Solaris doors
return
elif stat.S_ISPORT(st.st_mode):
# Ignore Solaris event ports
return
else:
self.print_warning('Unknown file type: %s', path)
return

View File

@ -33,7 +33,8 @@ class TimeoutTimer:
:param timeout: time out interval [s] or None (no timeout)
:param sleep: sleep interval [s] (>= 0: do sleep call, <0: don't call sleep)
or None (autocompute: use 10% of timeout, or 1s for no timeout)
or None (autocompute: use 10% of timeout [but not more than 60s],
or 1s for no timeout)
"""
if timeout is not None and timeout < 0:
raise ValueError("timeout must be >= 0")
@ -42,7 +43,7 @@ class TimeoutTimer:
if timeout is None:
sleep = 1.0
else:
sleep = timeout / 10.0
sleep = min(60.0, timeout / 10.0)
self.sleep_interval = sleep
self.start_time = None
self.end_time = None

View File

@ -198,7 +198,7 @@ Use the Cygwin installer to install the dependencies::
python3 python3-setuptools
python3-cython # not needed for releases
binutils gcc-core
binutils gcc-g++
libopenssl openssl-devel
liblz4_1 liblz4-devel # from cygwinports.org
git make openssh