1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-07 07:02:53 +03:00

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
This commit is contained in:
Alex Hornby
2021-11-04 02:02:29 -07:00
committed by Facebook GitHub Bot
parent 5927e8feba
commit a8960cfe5f
2 changed files with 5 additions and 2 deletions

View File

@@ -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")

View File

@@ -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"