Tools: fix uploader for macos systems

This commit is contained in:
Siddharth Purohit 2019-03-11 18:23:35 +05:30 committed by Andrew Tridgell
parent 4e151197a8
commit bc97ee5498

View File

@ -681,12 +681,12 @@ def ports_to_try(args):
# Cygwin, don't open MAC OS and Win ports, we are more like
# Linux. Cygwin needs to be before Windows test
pass
elif "win" in _platform:
# Windows, don't open POSIX ports
portlist = [port for port in portlist if "/" not in port]
elif "darwin" in _platform:
# OS X, don't open Windows and Linux ports
portlist = [port for port in portlist if "COM" not in port and "ACM" not in port]
elif "win" in _platform:
# Windows, don't open POSIX ports
portlist = [port for port in portlist if "/" not in port]
return portlist