1
0
Fork 0
mirror of synced 2024-06-27 02:20:36 +12:00

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
if USE_WGET:
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(
VERSION=VERSION,