Skip to content

Commit 872ba52

Browse files
authored
Add extra version check for ubuntu 18.04 (rust-lang#1371)
1 parent 92155a1 commit 872ba52

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/setup.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ fn setup_python_deps(kani_dir: &Path, os: &os_info::Info) -> Result<()> {
115115
let pkg_versions = &["cbmc-viewer==3.5", "colorama==0.4.3"];
116116

117117
if os.os_type() == os_info::Type::Ubuntu
118-
&& *os.version() == os_info::Version::Semantic(18, 4, 0)
118+
// Check both versions: https://github.com/stanislav-tkach/os_info/issues/318
119+
&& (*os.version() == os_info::Version::Semantic(18, 4, 0)
120+
|| *os.version() == os_info::Version::Custom("18.04".into()))
119121
{
120122
os_hacks::setup_python_deps_on_ubuntu_18_04(&pyroot, pkg_versions)?;
121123
return Ok(());

0 commit comments

Comments
 (0)