parse individual connector versions
This commit is contained in:
parent
33a942707c
commit
83feb2c0e0
4
debian/control
vendored
4
debian/control
vendored
@ -10,7 +10,7 @@ Vcs-Git: https://github.com/jketterl/openwebrx.git
|
|||||||
|
|
||||||
Package: openwebrx
|
Package: openwebrx
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: adduser, python3 (>= 3.5), python3-pkg-resources, csdr (>= 0.17), netcat, owrx-connector (>= 0.4), soapysdr-tools, python3-js8py (>= 0.1), ${python3:Depends}, ${misc:Depends}
|
Depends: adduser, python3 (>= 3.5), python3-pkg-resources, csdr (>= 0.17), netcat, owrx-connector (>= 0.5), soapysdr-tools, python3-js8py (>= 0.1), ${python3:Depends}, ${misc:Depends}
|
||||||
Recommends: digiham (>= 0.4), dsd (>= 1.7), sox, direwolf (>= 1.4), wsjtx, runds-connector, hpsdrconnector, aprs-symbols, m17-demod, js8call
|
Recommends: digiham (>= 0.4), dsd (>= 1.7), sox, direwolf (>= 1.4), wsjtx, runds-connector (>= 0.2), hpsdrconnector, aprs-symbols, m17-demod, js8call
|
||||||
Description: multi-user web sdr
|
Description: multi-user web sdr
|
||||||
Open source, multi-user SDR receiver with a web interface
|
Open source, multi-user SDR receiver with a web interface
|
||||||
|
@ -263,10 +263,8 @@ class FeatureDetector(object):
|
|||||||
True,
|
True,
|
||||||
)
|
)
|
||||||
|
|
||||||
def _check_connector(self, command):
|
def _check_connector(self, command, required_version):
|
||||||
required_version = LooseVersion("0.4")
|
owrx_connector_version_regex = re.compile("^{} version (.*)$".format(re.escape(command)))
|
||||||
|
|
||||||
owrx_connector_version_regex = re.compile("^owrx-connector version (.*)$")
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
process = subprocess.Popen([command, "--version"], stdout=subprocess.PIPE)
|
process = subprocess.Popen([command, "--version"], stdout=subprocess.PIPE)
|
||||||
@ -279,6 +277,9 @@ class FeatureDetector(object):
|
|||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
def _check_owrx_connector(self, command):
|
||||||
|
return self._check_connector(command, LooseVersion("0.4"))
|
||||||
|
|
||||||
def has_rtl_connector(self):
|
def has_rtl_connector(self):
|
||||||
"""
|
"""
|
||||||
The owrx_connector package offers direct interfacing between your hardware and openwebrx. It allows quicker
|
The owrx_connector package offers direct interfacing between your hardware and openwebrx. It allows quicker
|
||||||
@ -286,7 +287,7 @@ class FeatureDetector(object):
|
|||||||
|
|
||||||
You can get it [here](https://github.com/jketterl/owrx_connector).
|
You can get it [here](https://github.com/jketterl/owrx_connector).
|
||||||
"""
|
"""
|
||||||
return self._check_connector("rtl_connector")
|
return self._check_owrx_connector("rtl_connector")
|
||||||
|
|
||||||
def has_rtl_tcp_connector(self):
|
def has_rtl_tcp_connector(self):
|
||||||
"""
|
"""
|
||||||
@ -295,7 +296,7 @@ class FeatureDetector(object):
|
|||||||
|
|
||||||
You can get it [here](https://github.com/jketterl/owrx_connector).
|
You can get it [here](https://github.com/jketterl/owrx_connector).
|
||||||
"""
|
"""
|
||||||
return self._check_connector("rtl_tcp_connector")
|
return self._check_owrx_connector("rtl_tcp_connector")
|
||||||
|
|
||||||
def has_soapy_connector(self):
|
def has_soapy_connector(self):
|
||||||
"""
|
"""
|
||||||
@ -304,7 +305,7 @@ class FeatureDetector(object):
|
|||||||
|
|
||||||
You can get it [here](https://github.com/jketterl/owrx_connector).
|
You can get it [here](https://github.com/jketterl/owrx_connector).
|
||||||
"""
|
"""
|
||||||
return self._check_connector("soapy_connector")
|
return self._check_owrx_connector("soapy_connector")
|
||||||
|
|
||||||
def _has_soapy_driver(self, driver):
|
def _has_soapy_driver(self, driver):
|
||||||
try:
|
try:
|
||||||
@ -535,7 +536,7 @@ class FeatureDetector(object):
|
|||||||
|
|
||||||
You can find more information [here](https://github.com/jketterl/sddc_connector).
|
You can find more information [here](https://github.com/jketterl/sddc_connector).
|
||||||
"""
|
"""
|
||||||
return self._check_connector("sddc_connector")
|
return self._check_connector("sddc_connector", LooseVersion("0.1"))
|
||||||
|
|
||||||
def has_hpsdr_connector(self):
|
def has_hpsdr_connector(self):
|
||||||
"""
|
"""
|
||||||
@ -550,4 +551,4 @@ class FeatureDetector(object):
|
|||||||
|
|
||||||
You can find more information [here](https://github.com/jketterl/runds_connector).
|
You can find more information [here](https://github.com/jketterl/runds_connector).
|
||||||
"""
|
"""
|
||||||
return self._check_connector("runds_connector")
|
return self._check_connector("runds_connector", LooseVersion("0.2"))
|
||||||
|
Loading…
Reference in New Issue
Block a user