ports/audio/py-pyradio/files/patch-pyradio_ping.py
Nicola Vitale 584a88ad25
audio/py-pyradio: Update to 0.8.9.32
- Install additional files (.desktop and icon)
- Add a post-patch target to set up default configuration
- Add desktop-file-utils to USES

Changelog:	https://github.com/coderholic/pyradio/releases/tag/0.8.9.32
2022-12-10 14:50:25 +01:00

11 lines
475 B
Python

--- pyradio/ping.py.orig 2022-12-09 15:36:15 UTC
+++ pyradio/ping.py
@@ -49,7 +49,7 @@ def linux_ping(server, count=1, timeout_in_seconds=1):
return 0 if '100%' in out[0] else 1
else:
r=subprocess.Popen(
- ['ping', '-c', str(count), '-w',
+ ['ping', '-c', str(count), '-t',
str(timeout_in_seconds), server],
stderr=subprocess.DEVNULL,
stdout=subprocess.PIPE