Commit 9b43e4c4 authored by Alex Hornby's avatar Alex Hornby Committed by Facebook GitHub Bot

add centos stream support

Summary:
Distro name wasn't matching and thus no rpms being installed or used

Also improved the error message for unknown systems

Reviewed By: farnz

Differential Revision: D32139850

fbshipit-source-id: 438278094159f732f6b1de506490b89d2c9cd3f7
parent ca670559
......@@ -366,7 +366,10 @@ class InstallSysDepsCmd(ProjectCmdBase):
if packages:
run_cmd(["apt", "install", "-y"] + packages)
else:
print("I don't know how to install any packages on this system")
host_tuple = loader.build_opts.host_type.as_tuple_string()
print(
f"I don't know how to install any packages on this system {host_tuple}"
)
@cmd("list-deps", "lists the transitive deps for a given project")
......
......@@ -99,7 +99,7 @@ class HostType(object):
def get_package_manager(self):
if not self.is_linux():
return None
if self.distro in ("fedora", "centos"):
if self.distro in ("fedora", "centos", "centos stream"):
return "rpm"
if self.distro.startswith(("debian", "ubuntu")):
return "deb"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment