fix wget_auto_compression check prining stderr to console

This commit is contained in:
Nick Sweeting 2019-03-30 17:43:44 -04:00
parent 68d1eb0389
commit 8283b353f4

View file

@ -221,7 +221,7 @@ try:
WGET_AUTO_COMPRESSION = False WGET_AUTO_COMPRESSION = False
if USE_WGET: if USE_WGET:
WGET_VERSION = bin_version(WGET_BINARY) WGET_VERSION = bin_version(WGET_BINARY)
WGET_AUTO_COMPRESSION = not run([WGET_BINARY, "--compression=auto", "--help"], stdout=DEVNULL).returncode WGET_AUTO_COMPRESSION = not run([WGET_BINARY, "--compression=auto", "--help"], stdout=DEVNULL, stderr=DEVNULL).returncode
WGET_USER_AGENT = WGET_USER_AGENT.format( WGET_USER_AGENT = WGET_USER_AGENT.format(
VERSION=VERSION, VERSION=VERSION,