forked from M-Labs/artiq
coredevice: compare gateware and software versions on release numbers only. Closes #738
This commit is contained in:
parent
9c973793df
commit
bea7a47349
|
@ -284,15 +284,9 @@ class CommKernel:
|
||||||
.format(runtime_id))
|
.format(runtime_id))
|
||||||
|
|
||||||
gateware_version = self._read_string()
|
gateware_version = self._read_string()
|
||||||
if gateware_version.endswith(".dirty"):
|
gateware_release = gateware_version.split("+")[0]
|
||||||
gateware_version_clean = gateware_version[:-6]
|
software_release = software_version.split("+")[0]
|
||||||
else:
|
if gateware_release != software_release:
|
||||||
gateware_version_clean = gateware_version
|
|
||||||
if software_version.endswith(".dirty"):
|
|
||||||
software_version_clean = software_version[:-6]
|
|
||||||
else:
|
|
||||||
software_version_clean = software_version
|
|
||||||
if gateware_version_clean != software_version_clean:
|
|
||||||
logger.warning("Mismatch between gateware (%s) "
|
logger.warning("Mismatch between gateware (%s) "
|
||||||
"and software (%s) versions",
|
"and software (%s) versions",
|
||||||
gateware_version, software_version)
|
gateware_version, software_version)
|
||||||
|
|
Loading…
Reference in New Issue