From: Jason Ish Date: Wed, 2 Oct 2019 20:39:26 +0000 (-0600) Subject: engine/build-info: include parsed version info X-Git-Tag: 1.1.0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4092723e2ae5f95b625ad3e1c0bdf7a8cf847f21;p=thirdparty%2Fsuricata-update.git engine/build-info: include parsed version info --- diff --git a/suricata/update/engine.py b/suricata/update/engine.py index 3719518..baf177a 100644 --- a/suricata/update/engine.py +++ b/suricata/update/engine.py @@ -49,6 +49,8 @@ def get_build_info(suricata): build_info["localstatedir"] = line.split()[-1].strip() elif line.startswith("Features:"): build_info["features"] = line.split()[1:] + elif line.startswith("This is Suricata version"): + build_info["version"] = parse_version(line) if not "prefix" in build_info: logger.warning("--prefix not found in build-info.")