Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux/lsb_release: parse version string (stanislav-tkach#318)
When the lsb_release executable is not found the version is taken from /etc/os_release and properly parsed. When it is found, however, the string was essentially not parsed, resulting in only Version::Custom objects to be returned. Calling the proper parsing function does the trick, and Version::Semantic objects get created as expected. The nearly manual handling of "rolling" for lsb_release, however, looks very suspicous, it should likely be folded to Version::from_string() instead. Signed-off-by: Yann Dirson <[email protected]>
- Loading branch information